note 115356 added to function.setcookie
| From: | ellert at vankoperen dot nl | Date: | Thu, 10 Jul 2014 22:58:38 +0000 |
| Subject: | note 115356 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199910@lists.php.net to get a copy of this message | ||
Caveat: if you use URL RewriteRules to get stuff like this: domain.com/bla/stuf/etc into parameters,
you might run into a hickup when setting cookies.
At least in my setup a change in one of the parameters resulted in the cookie not being
'there' anymore.
The fix is simple: specify the domain. '/' will usualy do fine.
----
Server IP: 72.52.91.14
Probable Submitter: 37.251.92.141
----
Manual Page -- http://php.net/manual/en/function.setcookie.php
Edit -- https://master.php.net/note/edit/115356
Del: integrated -- https://master.php.net/note/delete/115356/integrated
Del: useless -- https://master.php.net/note/delete/115356/useless
Del: bad code -- https://master.php.net/note/delete/115356/bad+code
Del: spam -- https://master.php.net/note/delete/115356/spam
Del: non-english -- https://master.php.net/note/delete/115356/non-english
Del: in docs -- https://master.php.net/note/delete/115356/in+docs
Del: other reasons-- https://master.php.net/note/delete/115356
Reject -- https://master.php.net/note/reject/115356
Search -- https://master.php.net/manage/user-notes.php