c# - ASP.NET Core Identity session expires sooner than it is configured to happen -


so in application i've configured identity as:

services.configureapplicationcookie(cfg =>             {                 cfg.cookie.name = "application_ms_state";                 cfg.cookie.expiration = timespan.fromdays(1);                 cfg.slidingexpiration = true;             }); 

but expiration happens in 20 minutes.could shed light on this?

read doc comments. https://github.com/aspnet/security/blob/a53bf093a7d86b35e019c80515c92d7626982325/src/microsoft.aspnetcore.authentication.cookies/cookieauthenticationoptions.cs#l147 expirestimespan , expiration control different things. expirestimespan 1 used sliding expiration.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -