Re: [PHP4BETA] sessions

From: Date: Thu, 23 Dec 1999 15:00:12 +0000
Subject: Re: [PHP4BETA] sessions
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-8442@lists.php.net to get a copy of this message
23-Dec-99 14:29 you wrote: > Hi, > I have a question about sessions in php4b3. > I have a webapplication (similiar to ICQ) and everything > is working perfect, except when the users doesn't logout. > I use the classic javascript event: onunload and it closes > the databaseconnection. But when the users connection > to internet is broken, there is no change that the event > onunload will occur. Therefore I wonder how I > with sessions can find out when the user have left the site? You can not. If user closes connection with your site via closing ppp connection to ISP (I often do this :-) you have no chance to get any event. The only way is to add crontab job and do closing on timeout.

« previous php.version4 (#8442) next »