note 109590 added to function.setcookie

From: Date: Tue, 31 Jul 2012 15:07:05 +0000
Subject: note 109590 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-189529@lists.php.net to get a copy of this message
@vanclute sure that wont work if you write setcookie("$cookiename[id]"); it uses $cookiename as an array, but because id is no value it is null, so for example if $cookiename = "test"; you would get "t" as the name of the cookie. ---- Server IP: 69.147.83.197 Probable Submitter: 130.180.20.255 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- https://master.php.net/note/edit/109590 Del: integrated -- https://master.php.net/note/delete/109590/integrated Del: useless -- https://master.php.net/note/delete/109590/useless Del: bad code -- https://master.php.net/note/delete/109590/bad+code Del: spam -- https://master.php.net/note/delete/109590/spam Del: non-english -- https://master.php.net/note/delete/109590/non-english Del: in docs -- https://master.php.net/note/delete/109590/in+docs Del: other reasons-- https://master.php.net/note/delete/109590 Reject -- https://master.php.net/note/reject/109590 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#189529) next »