title: How to make a session not to timeout?
body: <p>I need the sessions in my web application not to timeout. They should be there until the user log out manually. It might be a bad call but I must implement it.</p>
  
  <p>I tried the below in web.xml</p>
  
  <pre><code>&lt;session-config&gt;
          &lt;session-timeout&gt;
              -1
          &lt;/session-timeout&gt;
      &lt;/session-config&gt;
  </code></pre>
  
  <p>However the session is still getting time out! Any suggestions?</p>