Nick
Nick

Reputation: 7525

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?

Upvotes: 6

Views: 1697

Answers (1)

Kelsey
Kelsey

Reputation: 47726

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

 HttpContext.Current.Session.Timeout = yourNewTimeout;

Upvotes: 9

Related Questions