note 46352 added to function.setcookie
| From: | joshrendek at cfl dot rr dot com | Date: | Thu, 07 Oct 2004 22:57:25 +0000 |
| Subject: | note 46352 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78154@lists.php.net to get a copy of this message | ||
For header('Set-Cookie: note... make sure, if your setting more than one cookie, that you do it
in the same line... such as:
<? header('Set-Cookie: password='.$password.'; Max-Age=36000; Set-Cookie:
user='.$user.'; Max-Age=36000;');
?>
Or else it will only take the 2nd header's cookie... wasted quite a bit of time trying to
figure this out
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46352
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46352&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46352&report=yes
Search -- http://master.php.net/manage/user-notes.php