title: ASP.NET Identity 2 relogin after deploy
body: <p>I'm using asp.net mvc 5 together with Identity2, standard login/password authentication, with "remember me" checkbox.</p>
  
  <p>Imagine the scenario:</p>
  
  <ul>
  <li>user logs in (standard auth cookie)</li>
  <li>application is redeployed</li>
  <li>user needs to relogin again.</li>
  </ul>
  
  <p>Questions: </p>
  
  <ol>
  <li>Is it possible not to relogin after deploy?</li>
  <li>Sometimes, after deploy when you refreshes a page, that requires authorized access - it displays correctly, but if you refresh the second time - it redirects to login page.</li>
  </ol>
  
  <p>All these happens when deployed to IIS7, locally on IIS Express everything is ok.</p>