Page 1 of 1
Session problem
Posted: Mon Jul 31, 2006 9:30 am
by marshall
Well, it's very simple..
I have a session with a expiring time...
When session expire, I would like to redirect the site...
Which variable should I set or which function should I use ?
Posted: Mon Jul 31, 2006 9:43 am
by feyd
There is no one function or variable for this. The most simple way I can think of is where you store the expiration time in the session or as part of the session data in some fashion, but do not actually set the session to expire then as far as the user is concerned. Checking the current time against the time stored to use the redirection logic.
Re: Session problem
Posted: Mon Jul 31, 2006 9:59 am
by RobertGonzalez
marshall wrote:Well, it's very simple..
I have a session with a expiring time...
When session expire, I would like to redirect the site...
Which variable should I set or which function should I use ?
Are you talking about redirecting at the exact time the session expires? If that is the case, you will need to combine Feyd's suggestion with some Javascript to get the client side process you want.
Posted: Mon Jul 31, 2006 1:18 pm
by marshall
Actually, the problem is:
I have a page passing the variable via GET method. When the session expires, the variable still there in the URL making a new login impossible...
Got it ?