|
Posted by Chris Stegeman on 10/21/05 00:21
Hello there,
On my site people have to log in and automatically start a session. An
authorized login grants access to other pages and MySQL data.
However when the user waits to long, the server ends the session, without a
proper logout. The user can't see that he is logged out, hits a button and
gets
mutiple errors because MySQL is no longer available.
Is there a way to to warn the user a minute before the session is ended?
I just read, the session time is set in session.gc_maxlifetime in php.ini.
So I
can let a timer run along with this time and warn the user, but doesn't the
server returns a signal before the session is ended that I can use to alert
the user or in any case can trigger a proper logout?
thanks, Chris
[Back to original message]
|