remm 2004/01/22 10:21:21 Modified: catalina/src/share/org/apache/catalina/session StandardSession.java Log: - Improvements to session activity tracking, handling the case where the session is new, as well as cross context. - If this doesn't work, I give up ;) Revision Changes Path 1.31 +8 -7 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardSession.java Index: StandardSession.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardSession.java,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- StandardSession.java 21 Jan 2004 10:46:58 -0000 1.30 +++ StandardSession.java 22 Jan 2004 18:21:21 -0000 1.31 @@ -316,7 +316,7 @@ /** * The access count for thsi session. */ - protected transient int accessCount = 0; + protected transient int accessCount = 1; // ----------------------------------------------------- Session Properties @@ -630,7 +630,6 @@ */ public void access() { - this.isNew = false; this.lastAccessedTime = this.thisAccessedTime; this.thisAccessedTime = System.currentTimeMillis(); @@ -646,6 +645,7 @@ */ public void endAccess() { + isNew = false; accessCount--; } @@ -725,6 +725,7 @@ } } } + accessCount = 0; setValid(false); // Remove this session from our manager's active sessions @@ -839,7 +840,7 @@ id = null; lastAccessedTime = 0L; maxInactiveInterval = -1; - accessCount = 0; + accessCount = 1; notes.clear(); setPrincipal(null); isNew = false;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]