remm        2004/01/22 10:22:24

  Modified:    catalina/src/share/org/apache/coyote/tomcat5
                        CoyoteRequest.java
  Log:
  - Improvements to session activity tracking, handling the case where the
    session is new, as well as cross context.
  - The request will call endAccess, rather than the host.
  - If this doesn't work, I give up ;)
  
  Revision  Changes    Path
  1.29      +8 -4      
jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteRequest.java
  
  Index: CoyoteRequest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteRequest.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- CoyoteRequest.java        16 Dec 2003 19:46:23 -0000      1.28
  +++ CoyoteRequest.java        22 Jan 2004 18:22:24 -0000      1.29
  @@ -439,6 +439,9 @@
           notes.clear();
           cookies = null;
   
  +        if (session != null) {
  +            session.endAccess();
  +        }
           session = null;
           requestedSessionCookie = false;
           requestedSessionId = null;
  @@ -2261,6 +2264,7 @@
               if ((session != null) && !session.isValid())
                   session = null;
               if (session != null) {
  +                session.access();
                   return (session.getSession());
               }
           }
  
  
  

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

Reply via email to