Andreas Magnusson wrote:
Hi, I wonder if anyone knows of a way to detect if a session has expired
(when your session.cookie_lifetime != 0).
I've tried to see if the session-vars are unset, but that doesn't seem to be
the case, still everythings seems to be lost.
My problem is that I have a page which the user must log in to in order to
access it (I use sessions for this).
This page contains a form which may take some time to fill in.
Now the session may expire during this time and all data will be lost.
My plan is to allow the user to login again without losing the data but this
requires me to know if the session has expired.

Why? Simply start a new session, keep the form variables in there and let the user log in again. I don't see any point in controling if the user used login -> form -> relogin process or went straight to the form, filled it in and then logged in for the first time.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to