Posts Tagged ‘Tomcat’

Setting the Session Timeout in Tomcat

You can specify the timeout of a session in the deployment descriptor of your web application (web.xml):

<web-app>
  <session-config>
    <session-timeout>60</session-timeout>
  </session-config>

  ...
</web-app>

The number within the session-timout element must be expressed in minutes.

Be sure to restart Tomcat to take the new setting.

Be the first to comment - What do you think?  Posted by David Dietrich - March 18, 2009 at 7:34 pm

Categories: Apache Tomcat   Tags: