Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts

    can Session.timeout value change?

    When i use Session.Timeout, when the session is still active.. if I use session.Timeout and set it a different value does it change or will it still maintain the value it had previously and continue the count down to destroying the session.

    The problem I have is that my server doesn't support global.asa right. So on everypage is the line session.timeout=30. Does this prolong the session each time the user loads a page or does it have no effect and remains unchanged from the minute that it was set?
    I'm gonna find a way to download the internet if its the last thing I do...
    Prepare to bow down to me (or my grave) and call me almighty when the algorithm is finished

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Everytime a page is executed, session timeout is reset. So with or without the session.timeout code in each page, the timeout is reset. Remember that session is terminated when user activity becomes idle (does not request a page) for the specified timeout.

    It is advisable to put session.timeout in one place, maybe in a page after a user has successfully logged in.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    is a session removed when the browser that it was set to is closed or all browsers that point to the server on that client are closed or what.. i didnt think sessions were affected by browser closes but it seems that once a browser has been closed for a short amount of time(compared to the session timeout) it closes the session.. i have a timeout of 10 mins and it seems to close it when the browser is closed for about 30 seconds to 1 minute... i havnt done much research on sessions though, but since only 2 people can log in and it only needs to save 1 byte of data for each person, i thought i may as well use them

  • #4
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Glad you mentioned that Ghell.... u should do some more research on it and re-post. That is a very interesting subject. Oh and thanks Glen.!!
    I'm gonna find a way to download the internet if its the last thing I do...
    Prepare to bow down to me (or my grave) and call me almighty when the algorithm is finished


  •  

    Posting Permissions

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