SessionAware actions are actions that receive information about their state from the execution environment. This has been deprecated, because Actions can get state information from ActionContext and ServletActionContext (if, of course, they're in a servlet).webwork.action.SessionAware is an interface; Actions that wish to be session-aware in the deprecated sense receive the session information passively (by having a method called that provides a map to the session data) as opposed to the preferred method of having the Action call ActionContext.getContext() (as well as the corresponding method in ServletActionContext).Thus, you might use the SessionAware interface like this:
public class MyAction extends ActionSupport implements SessionAware {
protected Map session;
public void setSession(Map m) {
session=m;
}
// extra code follows…
}
The session data will now be available via the session variable. Calling session.clear() will magically invalidate the servlet session (if, of course, this is a servlet session).