struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjeewa Saman" <sanjee...@mubasher.net>
Subject Struts2 Session Invalidate.
Date Fri, 22 Feb 2008 03:47:35 GMT
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();

                  } catch (IllegalStateException e) {

                        logger.error(e);

                  }

            }

 

But still I can go to the pages in my web project and do the operations. Can
somebody please suggest me a solution for this.

 

Thank you very much.

 

sanjeewa


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message