title: MVC ASP.NET website logging out earlier than settings show
body: <p>I have the following config in an attempt to allow the session to be retained for around 239 minutes, however the session is lost in less than an hour.</p>
  
  <pre><code>&lt;system.web&gt;
  &lt;sessionState mode="InProc" timeout="240" /&gt;
  &lt;compilation debug="true" targetFramework="4.0"&gt;
    &lt;assemblies&gt;
         ...
    &lt;/assemblies&gt;
  &lt;/compilation&gt;
  &lt;authentication mode="Forms"&gt;
    &lt;forms loginUrl="~/Account/LogOn" timeout="239" /&gt;
  &lt;/authentication&gt;
  &lt;pages&gt;
    &lt;namespaces&gt;
         ...
    &lt;/namespaces&gt;
  &lt;/pages&gt;
  </code></pre>
  
  <p></p>
  
  <p>I don't believe there to be any C# code overriding these settings.</p>
  
  <p>Does anyone know why this might be happening?</p>