tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Dickey" <>
Subject RE: Help with session-timeout
Date Tue, 29 Nov 2005 19:22:50 GMT
Are there any other services involved (JDBC, etc.) that are referenced by or
in the session, or where the sessions are dependent? Just wondering why TC
threads are invalidating the session...

Another option to test is add a line of code in your login process (whatever
establishes the HttpSession object) and manually set the timeout with the
HttpSession.setMaxInactiveInterval() method.  I believe this method
overrides any descriptor settings.

Of course, having said all of that, your descriptors should work as you have
specified.  Perhaps the "multiple applications" or other service timeout
descriptors are influencing the session timeouts...I've seen stranger things might find this link useful as a test of your TC session
timeout setup...


-----Original Message-----
From: Dave Morrow [] 
Sent: Tuesday, November 29, 2005 10:48 AM
To: Tomcat Users List
Subject: Help with session-timeout

Hi all.  I have a server with multiple applications running under Tomcat 5.5

In <TOMCAT_HOME>/conf/web.xml <session-timeout> is set to 30

In <TOMCAT_HOME>/webapps/myapp/WEB-INF/web.xml <session-timeout> is set to
-1 (infinite)

Users are being timed out of their sessions after 30 minutes as opposed to
never being timed out.  

Can anyone assist with this?  Any help would be greatly appreciated.

David A. Morrow
Technical Systems Lead
Autodata Solutions Company


NEW !!! Tel: (519) 963-3020
Fax: (519) 451-6615 

< Poor planning on your part does not necessarily constitute an emergency on
my part! >

This message has originated from Autodata Solutions. The attached material
is the Confidential and Proprietary Information of Autodata Solutions. This
email and any files transmitted with it are confidential and intended solely
for the use of the individual or entity to whom they are addressed. If you
have received this email in error please delete this message and notify the
Autodata system administrator at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message