Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customizing session timeout per user - ASP.NET

Is there a way to customize the session timeout on a per user basis? It appears that we are going to have to override the web.config setting with a custom provider.

Any thoughts on how to do this and potential drawbacks?

like image 234
Nick Avatar asked Oct 28 '11 16:10

Nick


1 Answers

Have you tried just editting the user's current session timeout in the Session_Start by setting it?

 HttpContext.Current.Session.Timeout = yourNewTimeout;
like image 95
Kelsey Avatar answered Sep 19 '22 22:09

Kelsey