Setting session timeout for each user - ASP.NET

Is there a way to set the session timeout for each user? It looks like we will have to override the web.config parameter with a custom provider.

Any thoughts on how to do this and potential flaws?

+6
source share
1 answer

Did you try to simply edit the current user session timeout in Session_Start by setting it?

  HttpContext.Current.Session.Timeout = yourNewTimeout; 
+8
source

Source: https://habr.com/ru/post/900306/


All Articles