View Full Version : Can session.timeout be customized for different users?
natgrauman
10-01-02, 17:16
| Hello,
I have an application with several different groups of users. I would like the timeout to be different for these different groups. Is there any way to accomplish this? I was thinking of something along the lines of
if accesslevel = one thing then
session.timeout = 30 minutes
else if accesslevel = another thing then
session.timeout = 90 minutes
else
session.timeout = 20 minutes.
Also, where would such code be placed? In global.asa?
Thanks!
Nat |
RunTimeError
10-02-02, 09:18
You answered your own question.
In your security database each user will have an "access level" so as you said:
once you determine the users access level then its simple:
Session("accesslevel") = GetUserAccessLevel(User)
if Session("accesslevel") = "user" then
session.timeout = 30 minutes
else if Session("accesslevel") = "admin" then
session.timeout = 90 minutes
else
session.timeout = 20 minutes.
you were on the right lines.. global.asa is a good a place as any...
natgrauman
10-02-02, 09:24
| Perfect, thanks.
Wow, help all the way from Sweden. That's cool.
Originally posted by RunTimeError
You answered your own question.
In your security database each user will have an "access level" so as you said:
once you determine the users access level then its simple:
Session("accesslevel") = GetUserAccessLevel(User)
if Session("accesslevel") = "user" then
session.timeout = 30 minutes
else if Session("accesslevel") = "admin" then
session.timeout = 90 minutes
else
session.timeout = 20 minutes.
you were on the right lines.. global.asa is a good a place as any... |
vBulletin v3.5.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.