DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39473>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39473

           Summary: Session timeout much shorter than setting in web.xml in
                    cluster envirement
           Product: Tomcat 5
           Version: 5.5.7
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina:Cluster
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


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);

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to