Author: tmjee Date: Wed Jul 19 08:12:58 2006 New Revision: 423485 URL: http://svn.apache.org/viewvc?rev=423485&view=rev Log: WW-1386 - SessionMap needs an invalidate method
Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/SessionMap.java Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/SessionMap.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/SessionMap.java?rev=423485&r1=423484&r2=423485&view=diff ============================================================================== --- struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/SessionMap.java (original) +++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/SessionMap.java Wed Jul 19 08:12:58 2006 @@ -52,10 +52,25 @@ this.session = request.getSession(false); } - /** - * Removes all attributes from the session as well as clears entries in this map. + * Invalidate the http session. */ + public void invalidate() { + if (session == null) { + return; + } + + synchronized (session) { + session.invalidate(); + session = null; + entries = null; + } + } + + /** + * Removes all attributes from the session as well as clears entries in this + * map. + */ public void clear() { if (session == null ) { return;