title: Session and user authentication using ASP Identity
body: <p>I use Asp Identity for Authentication in MVC project, my problem is the session end and the user still authentication in some cases.</p>
  
  <p>I set the time out of OWIN to 20 min on configuration</p>
  
  <pre><code> app.UseCookieAuthentication(new CookieAuthenticationOptions
              {
                  AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
                  ExpireTimeSpan = TimeSpan.FromMinutes(20),
                  SlidingExpiration = false,
              })
  </code></pre>
  
  <p>its work after 20 min my session data and Owin is cleared.</p>
  
  <p>but still problem in some cases :</p>
  
  <ol>
  <li><p>when IIS reset the session clear but the user still authenticated .</p></li>
  <li><p>when I build my solution on vs 2015 the session clear but the user still authenticated .</p></li>
  </ol>