Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2002
    Posts
    11

    Talking Unanswered: 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

  2. #2
    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...

  3. #3
    Join Date
    Sep 2002
    Posts
    11
    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •