|
Posted by steve on 10/21/05 06:43
coordinate your php business logic/rules with javascript. the page warns the
user and then posts an auto-logout to the server if too long/no
response...that's all just javascript. straight-forward and ez.
hth,
me
"Chris Stegeman" <cstegeman@deltion.nl> wrote in message
news:dj9119$8tg$1@news6.zwoll1.ov.home.nl...
| 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 logged out, hits a button and
gets
| mutiple errors because the database is no longer available or other
| problems.
| Is there a way to to warn the user a minute before the session is ended.
| I know 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
|
|
Navigation:
[Reply to this message]
|