How to set the cookie validateInterval in ASP.NET Core?
问题 I'm trying to set the validateInterval for an ASP.NET 5 RC1 application which makes use of ASP.NET Identity 3 I am trying to implement the code in this answer. there are many code sample like this answer but it seems it isn't valid in ASP.NET 5 RC1 app.UseCookieAuthentication(new CookieAuthenticationOptions { Provider = new CookieAuthenticationProvider { OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, ApplicationUser>( validateInterval: TimeSpan