git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@987995
13f79535-47bb-0310-9956-
ffa450edef68
}
if (maxInactiveInterval >= 0) {
long timeNow = System.currentTimeMillis();
- int timeIdle = (int) ( (timeNow - thisAccessedTime) / 1000L);
+ int timeIdle;
+ if (LAST_ACCESS_AT_START) {
+ timeIdle = (int) ((timeNow - lastAccessedTime) / 1000L);
+ } else {
+ timeIdle = (int) ((timeNow - thisAccessedTime) / 1000L);
+ }
if (isPrimarySession()) {
if (timeIdle >= maxInactiveInterval) {
expire(true);
<fix>
Add Null check when CHANGE_SESSION_ID message received. (kfujino)
</fix>
+ <fix>
+ Add support for LAST_ACCESS_AT_START system property to DeltaSession.
+ (kfujino)
+ </fix>
</changelog>
</subsection>
<subsection name="Web applications">