Tuesday, 15 July 2014

c# - Change Session Timeout on fly in ASP.NET MVC 5 -



c# - Change Session Timeout on fly in ASP.NET MVC 5 -

this question has reply here:

can personalize session timeout roles in asp.net mvc 5 2 answers

is there way alter session timeout on fly in asp.net mvc 5 globally without restarting application?

i know can

public void configureauth(iappbuilder app) { app.usecookieauthentication(new cookieauthenticationoptions { expiretimespan = timespan.fromminutes(10), authenticationtype = defaultauthenticationtypes.applicationcookie, loginpath = new pathstring("/account/login"), cookiename = ".myapp1_authentication", slidingexpiration = true }); }

but there way in other places of application? give thanks you!

close duplicate question reply specifically, can this

httpcontext.current.session.timeout = 20;

c# .net asp.net-mvc asp.net-mvc-5

No comments:

Post a Comment