title: How to set TimeOut for OwinContext in MVC 5
body: <p>When a user access a website and enters their credentials which are stored in our database, we when create an authentication. </p>
  
  <p>How do you set the timeout?
  Using MVC 5.</p>
  
  <p>My Authentication looks like this:</p>
  
  <pre><code>        var claims = new List&lt;Claim&gt;();
          claims.Add(new Claim("UserId", user.UserID.ToString()));
          claims.Add(new Claim(ClaimTypes.Name, user.FirstName + " " + user.LastName));
          claims.Add(new Claim(ClaimTypes.Email, user.Email));
          claims.Add(new Claim(ClaimTypes.NameIdentifier, user.UserID.ToString()));
          var id = new ClaimsIdentity(claims, DefaultAuthenticationTypes.ApplicationCookie);
  
          var ctx = Request.GetOwinContext();
          var authenticationManager = ctx.Authentication;
          authenticationManager.SignIn(id); 
  </code></pre>