On Wed, 13 Jun 2001, Mark Johnson wrote:

> In Tomcat 3.2.1 the session timeout is set in
> $JAKARTA_HOME/build/tomcat/conf/web.xml. HTH...
> 

Actually, the *default* timeout can be set in your own web.xml file:

  <session-config>
    <session-timeout> 45 </session-timeout> <!-- minutes -->
  </session-config>

Also, at any time, you can change the timeout on a particular session by
calling session.setMaxInactiveInterval().  Thus, you could extend the
timeout when you know that the user might be sitting there for a while,
and shorten it at other times.

Craig McClanahan


Reply via email to