Re: Sessions question

From: Date: Fri, 21 Mar 2003 06:34:00 +0000
Subject: Re: Sessions question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140548@lists.php.net to get a copy of this message
On Friday 21 March 2003 13:57, Beauford.2002 wrote: > I have read some posts to this list on sessions and have read as much as I > can find on them, but one problem still exists which I can't figure out. > How do I kill the session when the user leaves my site. There is simply no way to tell when a user 'leaves' your site. PHP automatically cleans up sessions that have been idle for some time (see php.ini). > So if a user is on > www.mine.com and logs in successfully, then goes to www.hers.com - the user > should have to log in again once coming back to www.mine.com, but at > present the user is still logged in - and all variables are still set. The only way to be sure someone has logged out is to present them with a logout link which when clicked will clear the session. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* I would much rather have men ask why I have no statue, than why I have one. -- Marcus Procius Cato */

« previous php.general (#140548) next »