Article updated on

Set Tomcat session Timeout

To change the tomcat session timeout you need to specify or change the session-timeout parameter it in the web.xml whose path is WEB-INF/web.xml. Most web containers/application server tend to respect this rule too.


* The timeout parameter is specified in minutes.

Full web.xml in UTF-8

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi=""
    xmlns="" xmlns:web=""
    id="WebApp_ID" version="2.5">


* You must restart tomcat to make this change take effect.