If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Can session.timeout be customized for different users?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-01-02, 16:16
natgrauman natgrauman is offline
Registered User
 
Join Date: Sep 2002
Posts: 11
Talking Can session.timeout be customized for different users?

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
Reply With Quote
  #2 (permalink)  
Old 10-02-02, 08:18
RunTimeError RunTimeError is offline
Registered User
 
Join Date: Oct 2002
Location: Sweden
Posts: 2
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...
Reply With Quote
  #3 (permalink)  
Old 10-02-02, 08:24
natgrauman natgrauman is offline
Registered User
 
Join Date: Sep 2002
Posts: 11
Perfect, thanks.

Wow, help all the way from Sweden. That's cool.



Quote:
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...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On