www.webdeveloper.com
Results 1 to 2 of 2

Thread: session timeout

  1. #1
    Join Date
    Feb 2003
    Posts
    25

    session timeout

    Hi, quite new to sessions so sorry if i sound dumb
    <script language=vbscript runat=server>
    Session("user") = cStr(Request("username"))
    </script>

    How do i add a longer timeout the 20 min. Can it be changed to 1 hour or something

    Thanks
    Alan

  2. #2
    Join Date
    Dec 2002
    Location
    Pensacola
    Posts
    263
    Maybe I'm missing something here, but this line:
    Session("user") = cStr(Request("username"))

    Should probably be this:
    Session("user") = cStr(Request.[QueryString||Form] "username"))

    But to answer your question, the Session.Timeout value is changed by adding this:

    Session.Timeout = ## where the ##'s are the number of minutes that the session will last.
    Cheers!
    Rob

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles