Reply to automatic logout before session end

Your name:

Reply:


Posted by Chris Stegeman on 10/21/05 00:08

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация