...

View Full Version : session timeout



mat
01-21-2003, 11: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?

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

mat
01-22-2003, 12:12 AM
Nope. Basically = Session("cart") -2D Array holding users items.

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

mat
01-22-2003, 01: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 ]


:)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum