Session life span
Posted: Thu Jun 06, 2002 12:50 pm
Hi,
This has been asked before by another but I didn't quite get the answer.
I'm OK creating a session, adding variables.
I'm OK accessing those variables on another page.
I'm OK on removing variables & destroying the session when they get to the last page in the sequence.
Buuut....
What happens when the user clicks "Back," or closes the window half way down the set of pages in the sequence, or clicks "New window" where the browser starts at the same place? Do you end up with un-cleared up sessions littering your server's drive? Do they "expire"? Any advice much appreciated.
Cheers
Tony
This has been asked before by another but I didn't quite get the answer.
I'm OK creating a session, adding variables.
I'm OK accessing those variables on another page.
I'm OK on removing variables & destroying the session when they get to the last page in the sequence.
Buuut....
What happens when the user clicks "Back," or closes the window half way down the set of pages in the sequence, or clicks "New window" where the browser starts at the same place? Do you end up with un-cleared up sessions littering your server's drive? Do they "expire"? Any advice much appreciated.
Cheers
Tony