How do I set session timeouts of greater than 30 minutes?

Janko Harej

Tomcat session keeps expiring in spite of entries in web.xml to the effect of

      <session-timeout>60</session-timeout>    <!-- 30 minutes -->
(where the number indicates the time in minutes)

While this works fine for small time values, for large values the session dies out well before the given time value. Is there a way around this?? The documentation talks of HttpSession.getMaxInactiveInterval() using which the session timeout can be set. Has anyone tinkered with this?? Appreciate some help very much.


I've included this in my JSP page:

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact