View Full Version : session timeout

01-21-2003, 10:09 PM
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?

01-21-2003, 10:36 PM
Are you storing your sessions in a DB?

01-21-2003, 11:12 PM
Nope. Basically = Session("cart") -2D Array holding users items.

01-22-2003, 12:00 AM
Yes, that's fine, but what makes your session persist from page to page?

01-22-2003, 12:52 AM
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 ]