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 5 of 5

Thread: session timeout

  1. #1
    mat
    mat is offline
    Regular Coder
    Join Date
    Jul 2002
    Posts
    199
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation session timeout

    How do you handle session timeouts in general? I've built a small checkout type series of pages with asp and trying to think of the best way to handle this:


    1 Including the actual condition/code on the pages i.e:
    ( If session doesn't exist > .display this code/message..)


    2. Redirect to a special timeout page
    ( If session doesn't exist > Redirect to timeout.asp )


    3.Or just redirect back the index (bad idea I think)


    I'm thinking number 2. Any other options, opinions or suggestions on this?
    Last edited by mat; 01-21-2003 at 11:11 PM.

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Are you storing your sessions in a DB?
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #3
    mat
    mat is offline
    Regular Coder
    Join Date
    Jul 2002
    Posts
    199
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nope. Basically = Session("cart") -2D Array holding users items.

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, that's fine, but what makes your session persist from page to page?
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #5
    mat
    mat is offline
    Regular Coder
    Join Date
    Jul 2002
    Posts
    199
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A Cookie is automatically written to the user's machine, storing the value of the SessionID. [ SessionID of course identifies the memory block on the Web server for that user's session ]




  •  

    Posting Permissions

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