Give thisAccessedTime and lastAccessedTime for sessions
authorrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 5 Nov 2008 21:56:52 +0000 (21:56 +0000)
committerrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 5 Nov 2008 21:56:52 +0000 (21:56 +0000)
commit6d7820612e894f07b809f63691171852d7592cd3
treea67df24b411f2601dcdff7f9a4e0315003d28f74
parent9a084bfcd723758dff597cc1d57c4affe440caaa
Give thisAccessedTime and lastAccessedTime for sessions
a clear semantics:

- thisAccessedTime will be updated at the beginning and
  at the end of session use
- lastAccessedTime will only be updated at the end of
  session use

This means:

- lastAccessedTime is the last access time of a session
  disregarding any request still being processed on.
  So this is good to use even from within a request
  to detect when its own session has been used last before.
- thisAccessedTime already gets updated when a new request
  disregarding any request still being processed on.
  So this is better for any idleness check or information.
- thisAccessedTime >= lastAccessedTime always

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@711711 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/catalina/session/StandardSession.java