note 61776 added to function.session-destroy

From: Date: Sat, 11 Feb 2006 18:09:23 +0000
Subject: note 61776 added to function.session-destroy
Groups: php.notes 
Request: Send a blank email to php-notes+get-103514@lists.php.net to get a copy of this message
I ran into the same problem with session_id() remaining the same for a new session after destroying a previous session at log out. I found this solution on another site: Modify the code example on this page to use this instead: if (isset($_COOKIE[session_name()])) { unset($_COOKIE[session_name()]); } ---- Server IP: 64.71.164.2 Probable Submitter: 216.150.208.169 ---- Manual Page -- http://www.php.net/manual/en/function.session-destroy.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61776 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61776&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61776&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61776&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61776&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61776&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61776&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61776&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61776&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#103514) next »