ASP.Net 5 Identity Persisted Authentication Not Working IIS 7.5 Idle Timer
<p>I am having an issue with a "remember me" style checkbox on an MVC6 project. I had a <a href="https://stackoverflow.com/questions/35300101/asp-net-identity-not-persisting-cookie-mvc6-vnext">related question here</a> that solved the issue for debugging on my localhost, however after deploying the project to our dev environment, it still forces me to re-login after 20 minutes. </p>

<p>The 20 minute time span made me think something was mis-configured with IIS. I set my app pool (configured as "no managed code") idle timer to go idle after 1 minute. Sure enough, after 1 minute, I have to re-login again. </p>

<p>This leads me to believe that my persisted authentication cookie is no longer being accepted as valid after an app pool recycle (even though my cookie is configured to not expire to 10 days and the <code>SecurityStampValidationInterval</code> is set for 10 days and 1 minute.</p>

<p>I've seen something similar in earlier versions of .NET related to a web.config's machine key, but MVC6 doesn't have a <code>system.web</code> section in the web.config for me to put a machine key. </p>

<p>My .NET5 project DNX is targeting the full .NET framework and not .NET Core.</p>