Hi all,
Can somebody please tell me how can I invalidate a session in struts2 .
session).invalidate();
} catch (IllegalStateException e) {
- Reply 1.
try
this
((org.apache.struts2.dispatcher.SessionMap)
ActionContext.getContext().getSession()).invalidate();
- Reply 2
HI ,
I think it do not remove the data in the session after we invalidate it.
So do you have any idea of removing the data in the session.
- Reply 3.
((org.apache.struts2.dispatcher.SessionMap)
> ActionContext.getContext().getSession()).clear();
It might have been quicker to look up the JavaDocs.
No comments:
Post a Comment