The idea is to set different values of Session Timeout for different User Roles in ASP.NET MVC 5 and ASP.NET Identity.
Is it possible to do?
The idea is to set different values of Session Timeout for different User Roles in ASP.NET MVC 5 and ASP.NET Identity.
Is it possible to do?
Based on their role you could set the timeout, i.e.
Going by your previous question you want to do this dynamically. You could store and update the times themselves in session and set for each role on
OnActionExecuting
of a base controller.If you are trying to boot admins out sooner than regular users, here is my stub on this in Identity.