title: How Do I Keep HttpSessions Alive in Tomcat?
body: <p>I'm having a bit of trouble with Session timeouts in my Tomcat served web application. From reading over Tomcat's documentation, sessions expire after a time which can be configured in the web.xml file.</p>
  
  <pre><code>&lt;session-config&gt;
          &lt;session-timeout&gt;30&lt;/session-timeout&gt;
      &lt;/session-config&gt;
  </code></pre>
  
  <p>Quesion) Does this mean 30 minutes from when the session was created for the user? Or 30 minutes from when the session was last accessed?</p>
  
  <p>If it is, as I originally thought, 30 minutes from when the session was last accessed, I don't seem to be seeing this behavior. My sessions seem to be lost as I'm using the site. Are there any other ways to configure session behavior besides this one setting? Is there something I'm missing?</p>
  
  <p>Apache Tomcat/6.0.20</p>