logging out after a few minutes despite authentication in owin

Oct 31 2020 7:00 AM
I use owin and although I have set the expired time defined in Startup.cs as 2 days, it exits itself after 15 minutes when the site is open in browser
  1. public void ConfigureAuth(IAppBuilder app)   
  2. {             
  3.       app.UseCookieAuthentication(new CookieAuthenticationOptions        
  4.         {                   
  5.        AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,    
  6.        LoginPath = new PathString("/Admin/Login"),          
  7.        ExpireTimeSpan = TimeSpan.FromDays(2.0)               
  8.          });      
  9. }  

Answers (2)