Changing the Default Apache Tomcat Session Timeout

By default, the Apache Tomcat session times out after 30 minutes. You can change the session timeout by editing the value of the <session-timeout> element in the web.xml file:

<session-config>
  <session-timeout>30</session-timeout>
</session-config>

The web.xml file is located in <CATALINA_HOME>\conf, where <CATALINA_HOME> is the Apache Tomcat installation directory.

Note: Restart the Tomcat web server after saving changes to the web.xml file.