You can use the tag to set the session variable to empty string
as below:
--
View this message in context:
http://www.nabble.com/Struts2-Session-Invalidate.-tp15627192p23988865.html
Sent from the Struts - User mailing list archive at Nabble.com
--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> Dave Newton wrote:
> > --- Sanjeewa Saman <[EMAIL PROTECTED]> wrote:
> >> 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.
> >
> >> ((org.apache.struts2.dispatch
Dave Newton wrote:
--- Sanjeewa Saman <[EMAIL PROTECTED]> wrote:
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.
((org.apache.struts2.dispatcher.SessionMap)
ActionContext.getContext().getSession()).clear();
--- Sanjeewa Saman <[EMAIL PROTECTED]> wrote:
> 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.
> ((org.apache.struts2.dispatcher.SessionMap)
> ActionContext.getContext().getSession()).clear();
It might have b
@struts.apache.org
Subject: Re: Struts2 Session Invalidate.
try
this
((org.apache.struts2.dispatcher.SessionMap)
ActionContext.getContext().getSession()).invalidate();
--
View this message in context:
http://www.nabble.com/Struts2-Session-Invalidate.-tp15627192p15628783.html
Sent from the Struts - User mailing
try
this
((org.apache.struts2.dispatcher.SessionMap)
ActionContext.getContext().getSession()).invalidate();
--
View this message in context:
http://www.nabble.com/Struts2-Session-Invalidate.-tp15627192p15628783.html
Sent from the Struts - User mailing list archive at Nabble.com
Hi all,
Can somebody please tell me how can I invalidate a session in struts2 .
I tried the following ,
if (session instanceof org.apache.struts2.dispatcher.SessionMap) {
try {
((org.apache.struts2.dispatcher.SessionMap)
session).invalidate();
7 matches
Mail list logo