note 109590 deleted from function.setcookie by danbrown
| From: | danbrown@php.net | Date: | Fri, 10 Aug 2012 16:24:39 +0000 |
| Subject: | note 109590 deleted from function.setcookie by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190028@lists.php.net to get a copy of this message | ||
Note Submitter: stefan
----
@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.