title: Tomcat 7 : Redirect URL in case of session timeout
body: <p>I have following configuration in <code>web.xml</code> in tomcat 7. I am wondering if I can add any configurable parameter here, so that if user tries to do any operation post 30 minutes, I redirect the user to our home page.</p>
  
  <pre><code>&lt;session-config&gt;
        &lt;session-timeout&gt;30&lt;/session-timeout&gt;
        &lt;cookie-config&gt;
                &lt;domain&gt;mydomain.mycompany.com&lt;/domain&gt;
                &lt;http-only&gt;true&lt;/http-only&gt;
                &lt;secure&gt;false&lt;/secure&gt;
        &lt;/cookie-config&gt;
        &lt;tracking-mode&gt;COOKIE&lt;/tracking-mode&gt;
  &lt;/session-config&gt;
  </code></pre>