Commits

Anonymous committed dc8965a

WW-1326: allow for an invalidate method

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2661573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (1)

src/java/com/opensymphony/webwork/dispatcher/SessionMap.java

         this.session = request.getSession(false);
     }
 
+    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.