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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -