You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2004/01/22 19:22:24 UTC
cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5 CoyoteRequest.java
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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org