ASP.NET Is it possible to differentiate session length from user? -
In the length of the ASP.NET session, can it be of a different length depending on the type of user logging? I want to have administrator users timeout after 3 hours, but standard users want to timeout after 30mins, as employees often open multiple windows in the office, and request a longer session length. I'm a little confused about making it taller for the world outside.
You can set session timeout (set timeout) minutes).
if (User.IsInRole ("Admin")) session. Timeout = 3 * 60;
Comments
Post a Comment