Re: Automatic logoff
| From: | listread | Date: | Mon, 25 Jan 2010 22:04:27 +0000 |
| Subject: | Re: Automatic logoff | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46803@lists.php.net to get a copy of this message | ||
js onunload sounds like a viable option. Will it work if the use just closes his browser?
Thanks for the tip!
- Ron
On 1/25/2010 12:51 PM, Bastien Koert wrote:
On Mon, Jan 25, 2010 at 1:48 PM, listread<listread@cze.com> wrote:Has anyone considered a way to run a script or automatically access a php page when a user leaves a site without logging off? The idea is to gracefully end that user's session. Thanks! -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpYou can try using an ajax call paired with the js onunload function to call the server. The other option is to time the user out via cron on the server after x number of minutes