Changing the Default Tomcat Session Timeout

By default, the 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:


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

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