title: Changing the default session timeout of a spring web application
body: <p>I have to test a web application that is written by spring and jsp. The default session-timeout for the application is 30 min.</p>
  
  <p>I want to reduce the session-timeout. For doing this, I have changed in the <code>web.xml</code> file in <code>tomcatInstallationLocation/conf/</code>. But it doesn't work. The default configuration in <code>tomcatInstallationLocation/conf/web.xml</code> was -</p>
  
  <pre><code>&lt;session-config&gt;
      &lt;session-timeout&gt;30&lt;/session-timeout&gt;
  &lt;/session-config&gt;
  </code></pre>
  
  <p>Where I've just changed the time and make it -</p>
  
  <pre><code>&lt;session-config&gt;
      &lt;session-timeout&gt;5&lt;/session-timeout&gt;
  &lt;/session-config&gt;
  </code></pre>
  
  <p>But is still doesn't work. As I know far, in this situation I have to make a change in my spring application's <code>web.xml</code>. But I'm not sure. Can any one help me?</p>
  
  <p>Thanks in advance.</p>