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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -