note 114637 added to function.setcookie
| From: | zweibieren at yahoo dot com | Date: | Sat, 15 Mar 2014 00:22:39 +0000 |
| Subject: | note 114637 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198895@lists.php.net to get a copy of this message | ||
time()-3600 is a poor way to compute an out-of-date time. If my server is on the east coast and the
recipient is on the west coast, the cookie will not expire for two hours.
I recommend
time()-24*3600
----
Server IP: 87.124.126.49
Probable Submitter: 71.206.238.128
----
Manual Page -- http://php.net/manual/en/function.setcookie.php
Edit -- https://master.php.net/note/edit/114637
Del: integrated -- https://master.php.net/note/delete/114637/integrated
Del: useless -- https://master.php.net/note/delete/114637/useless
Del: bad code -- https://master.php.net/note/delete/114637/bad+code
Del: spam -- https://master.php.net/note/delete/114637/spam
Del: non-english -- https://master.php.net/note/delete/114637/non-english
Del: in docs -- https://master.php.net/note/delete/114637/in+docs
Del: other reasons-- https://master.php.net/note/delete/114637
Reject -- https://master.php.net/note/reject/114637
Search -- https://master.php.net/manage/user-notes.php