title: ASP.NET Identity 2 Remember Me - User Is Being Logged Out
body: <p>I am using Identity 2.1 in my MVC5 app.
  I am setting the isPersistent property of the PasswordSignInAsync to true to enable 'Remember Me':</p>
  
  <pre><code>var result = await SignInManager.PasswordSignInAsync(model.Username, 
    model.Password, 
    true, 
    shouldLockout: false);
  </code></pre>
  
  <p>But if I stay logged in overnight, then when I refresh the page in the morning, it logs me out and I have to sign in again.
  How do I prevent automatic logging out until the user manually logs out?</p>
  
  <p>Is it something to do with the Cookie Authentication that identity uses? I don't really understand the CookieAuthenticationOptions that are set in Startup.Auth.cs.</p>
  
  <pre><code>new CookieAuthenticationProvider
  {  
     OnValidateIdentity = SecurityStampValidator
        .OnValidateIdentity&lt;ApplicationUserManager, ApplicationUser&gt;(
        validateInterval: TimeSpan.FromMinutes(30),
        regenerateIdentity: (manager, user)
        =&gt; user.GenerateUserIdentityAsync(manager))
  }
  </code></pre>