note 56310 added to features.connection-handling
| From: | php-general at lists dot php dot net | Date: | Tue, 30 Aug 2005 13:03:30 +0000 |
| Subject: | note 56310 added to features.connection-handling | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-94424@lists.php.net to get a copy of this message | ||
Actually, this is very useful for session management.
I store the a specific session id for a user in mysql. I have always wondered how to clear that
session id in the mysql database if the user doesn't logout but switches off his browser. You
could use this as error trapping-user switches off->the php script runs and deletes the session
for the user.
Handy!
----
Manual Page -- http://www.php.net/manual/en/features.connection-handling.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56310
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56310&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56310&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56310&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56310&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56310&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56310&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56310&report=yes
Search -- http://master.php.net/manage/user-notes.php