DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5507>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5507

Swapping sessions causes exceptions and it doesn't work with FileStore





------- Additional Comments From [EMAIL PROTECTED]  2002-06-24 20:46 -------

A session that is in "the store" is offically in limbo.  It shouldn't
talk to the manager (as a newer copy of itself may exist in the manager.)
When session.expire() was called by the store, a newer version of this 
session could be wiped from memory.  BAD, um kay.


Index: StoreBase.java
===================================================================
RCS file:
/home/cvspublic/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/session/StoreBase.java,v
retrieving revision 1.5
diff -u -r1.5 StoreBase.java
--- StoreBase.java      9 Jun 2002 02:19:43 -0000       1.5
+++ StoreBase.java      24 Jun 2002 20:40:58 -0000
@@ -305,6 +305,7 @@
         for (int i = 0; i < keys.length; i++) {
             try {
                 StandardSession session = (StandardSession) load(keys[i]);
+                session.setManager(null);
                 if (!session.isValid())
                     continue;
                 int maxInactiveInterval = session.getMaxInactiveInterval();

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to