Why doesn't cookie ExpireTimeSpan setting work?
问题 I used: services.AddAuthenticationCore().ConfigureApplicationCookie(o => { o.ExpireTimeSpan = TimeSpan.FromHours(1); o.SlidingExpiration = true; }); to set my authentication cookie ExpireTimeSpan in Startup.cs in ASP.NET Core MVC project. I can see that the cookie expire-time has been set correctly in the web browser after login, but it auto logout after 30 minutes every time, even if I refresh the website every 10 seconds. If I set the ExpireTimeSpan less than 30 minutes, it can timeout