title: asp.net mvc page redirected to login page after a few days
body: <p>I have an ASP.NET MVC page which refreshes every 5 minutes. This page is used to display data only. The PC used to host this page goes days without any interaction. The page will refresh just fine for a few days, but then (on its own) this page will be redirected to the login page after 2, 4 or 5 days randomly.</p>
  
  <p>Any idea as to whats going on?</p>
  
  <p>I added the following attribute to Web.config for this page only as i thought maybe it was timing out while the database was running backups over night or something odd like that.</p>
  
  <pre><code>&lt;location path="~/Views/Production/WIPScanStationViewer.aspx"&gt;
  &lt;system.web&gt;
    &lt;httpRuntime executionTimeout="1000" maxRequestLength="2048576"/&gt;      
  &lt;/system.web&gt;    
  &lt;/location&gt;
  </code></pre>