oauth - (ASP.NET MVC5) How to change default time out of 5 mins? -




i have web app developed aspnet mvc5 in authentication done identityserver3 using openidconnect (idp configured use google+).

the issue that, session timed out after 5 mins set cookie & session 60 mins.

below code:

this code on startup of client

app.usecookieauthentication(new cookieauthenticationoptions         {             authenticationtype = "cookies",             slidingexpiration = true,             cookiename = "refmanweb",             expiretimespan = timespan.fromhours(1),         }); 

also have sessionstate set in web.config

<sessionstate timeout="60"></sessionstate> 

can guy point out wrong here ? advice appriciated !

update: cookies have exprires = "at end of session".

enter image description here

slidingexpiration works option usetokenlifetime = false in openid middleware.

for e.g.

 app.useopenidconnectauthentication( new openidconnectauthenticationoptions()             {                 authority = options.authorityurl.tostring(),                 clientid = options.client.id.tostring(),                 redirecturi = options.client.url.tostring(),                 postlogoutredirecturi = options.client.url.tostring(),                 responsetype = "id_token",                 usetokenlifetime = false,                 signinasauthenticationtype = options.cookiename,                 notifications = new customnotificationprovider()             }); 




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -