note 26152 deleted from function.setcookie by vincent

From: Date: Wed, 10 Sep 2003 18:39:17 +0000
Subject: note 26152 deleted from function.setcookie by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55969@lists.php.net to get a copy of this message
Note Submitter: sijis@ruizbelvis.org ---- If you try to set an array of cookies by using array notation make sure you have the same expire length of the cookie. If you don't, only the first cookie in the array or cookies matching the same expiration date will be created. // This will NOT work. setcookie("value[one]","value1",time()+5184000); setcookie("value[two]","value2",time()+14400); // This will work. setcookie("value[one]","value1",time()+5184000); setcookie("value[two]","value2",time()+5184000); It also does NOT matter when the expiration date is for the cookie. They can be set for different dates.

« previous php.notes (#55969) next »