We have a tow nodes Tomcat cluster server on production. The session timeout is set to 20 minutes. The costomers complained their session timeout much shorter than 20 minutes, sometimes within 5 minutes. I did a test: T1 -> access the page T2 -> access the page T3 -> access the page The session would timeout if T3 - T1 > 20 minutes. I compare the source for Non-cluster session and Cluster session, found they are calculate the idle time in different way. In DeltaSession.java: int timeIdle = (int) ((timeNow - lastAccessedTime) / 1000L); In StandardSession.java: int timeIdle = (int) ((timeNow - thisAccessedTime) / 1000L);
Arrg! You are right and have also see that for long time, but I don't find them. Many Thanks to report and find that Peter Fixed at 5.5.18. I hope for next release we refactor the nasty code duplication between core and cluster modules :-(