tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session StandardSession.java
Date Wed, 31 Dec 2003 21:24:56 GMT
remm        2003/12/31 13:24:56

  Modified:    catalina/src/share/org/apache/catalina/session
                        StandardSession.java
  Log:
  - Bug 25792: Fix session timeout implementation, which could lead to incorrect
    invalidation in some cases.
  - Submitted by Jarno Peltoniemi.
  - Ths patch needs to be tested for possible regressions.
  
  Revision  Changes    Path
  1.27      +5 -5      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.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- StandardSession.java	29 Nov 2003 18:06:35 -0000	1.26
  +++ StandardSession.java	31 Dec 2003 21:24:56 -0000	1.27
  @@ -584,7 +584,7 @@
           
           if (maxInactiveInterval >= 0) { 
               long timeNow = System.currentTimeMillis();
  -            int timeIdle = (int) ((timeNow - lastAccessedTime) / 1000L);
  +            int timeIdle = (int) ((timeNow - thisAccessedTime) / 1000L);
               if (timeIdle >= maxInactiveInterval) {
                   expire(true);
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message