note 89443 added to function.session-destroy

From: Date: Sun, 08 Mar 2009 03:59:26 +0000
Subject: note 89443 added to function.session-destroy
Groups: php.notes 
Request: Send a blank email to php-notes+get-151617@lists.php.net to get a copy of this message
The Manual states: "In order to kill the session altogether, like to log the user out, the session id must also be unset. If a cookie is used to propagate the session id (default behavior), then the session cookie must be deleted. setcookie() may be used for that." Leading you to believe that you should <?php unset(SID); ?>However <?php SID ?>can not be <?php unset(); ?>. It causes this error: Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM Which means it expects a semi colon, translated from Hebrew. So after you use <?php session_destroy(); ?>do not try to <?php unset(SID); ?> I think the maual should be updated to reflect this error. ---- Server IP: 64.71.164.2 Probable Submitter: 153.26.178.60 ---- Manual Page -- http://www.php.net/manual/en/function.session-destroy.php Edit -- https://master.php.net/note/edit/89443 Del: integrated -- https://master.php.net/note/delete/89443/integrated Del: useless -- https://master.php.net/note/delete/89443/useless Del: bad code -- https://master.php.net/note/delete/89443/bad+code Del: spam -- https://master.php.net/note/delete/89443/spam Del: non-english -- https://master.php.net/note/delete/89443/non-english Del: in docs -- https://master.php.net/note/delete/89443/in+docs Del: other reasons-- https://master.php.net/note/delete/89443 Reject -- https://master.php.net/note/reject/89443 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151617) next »