costin 01/08/31 18:59:30
Modified: src/facade22/org/apache/tomcat/facade HttpSessionFacade.java
Log:
session.invalidate() should remove the attributes, do the callbacks and recycle the
session.
Revision Changes Path
1.11 +10 -0
jakarta-tomcat/src/facade22/org/apache/tomcat/facade/HttpSessionFacade.java
Index: HttpSessionFacade.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat/src/facade22/org/apache/tomcat/facade/HttpSessionFacade.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- HttpSessionFacade.java 2001/07/10 23:56:33 1.10
+++ HttpSessionFacade.java 2001/09/01 01:59:30 1.11
@@ -153,6 +153,10 @@
public void invalidate() {
checkValid();
realSession.getTimeStamp().setValid( false );
+ // remove all attributes
+ if( dL > 0 ) d("Invalidate " + realSession.getId());
+ realSession.setState(ServerSession.STATE_EXPIRED);
+ realSession.recycle();
}
/**
@@ -287,4 +291,10 @@
}
}
+ private static final int dL=10;
+ private void d(String s ) {
+ System.err.println( "HttpSessionFacade: " + s );
+ }
+
+
}