note 23362 added to function.setcookie
| From: | marco_almeida_AThotmail.com@php.net | Date: | Tue, 16 Jul 2002 16:20:38 +0000 |
| Subject: | note 23362 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33144@lists.php.net to get a copy of this message | ||
If you use $HTTP_HOST to find the domain to set in the cookie, and if you're working on
"non 80" port, the SetCookie function won't work.
Examples:
SetCookie
("Test","12345",time()+30240000,"/","www.domain.com:81")
will not work
SetCookie
("Test","12345",time()+30240000,"/","www.domain.com")
will work
--
http://www.php.net/manual/en/function.setcookie.php
http://master.php.net/manage/user-notes.php?action=edit+23362
http://master.php.net/manage/user-notes.php?action=delete+23362
http://master.php.net/manage/user-notes.php?action=reject+23362