2 Minutes To Code (β Version)

Apache Tomcat - 2 minute tutorial

How to configure session timeout in deployment descriptor (web.xml)

If you are using http sessions, then you configure the timeout period for idle sessions in the deployment descriptor using the elements <session-config> and <session-timeout> as shown below. The session-timeout value is taken to be in minutes.

In the example below, session timeout is configured as 30 minutes.