title: Aspnet unexpected logout
body: <p>I'm working in a project where we are using aspnet mvc 5 and we have some problems with a unexpected logout after 5 min of inactivity in a page.</p>
  
  <p>I have this in my web.config:</p>
  
  <pre><code>&lt;sessionState timeout="30"/&gt;
  &lt;authentication mode="None"/&gt;
  </code></pre>
  
  <p>What you think are causing this about project? </p>
  
  <p>If need more information ask please.</p>
  
  <p>Thanks.</p>
  
  <p>PS: My AuthenticationType is ApplicationCookie</p>
  
  <p>PS2: Added machine key to web.config and still logout after a couple of minutes:</p>
  
  <pre><code>&lt;machineKey validationKey="string" decryptionKey="otherstring" validation="SHA1" decryption="AES" /&gt;
  </code></pre>
  
  <p>PS3: Locally everything works fine. </p>