#20571 [Opn->Bgs]: setcookie() and domain
| From: | sniper@php.net | Date: | Fri, 22 Nov 2002 17:18:50 +0000 |
| Subject: | #20571 [Opn->Bgs]: setcookie() and domain | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25584@lists.php.net to get a copy of this message | ||
ID: 20571
Updated by: sniper@php.net
Reported By: crespin.quartz@Wanadoo.fr
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Windows NT 5.0
PHP Version: 4.3.0RC1
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-11-22 08:41:24] crespin.quartz@Wanadoo.fr
My current version is : php-4.3.0pre2-Win32
It's a cookie problem.
I'm using
setcookie("visit",$nb_visit+1,mktime(0,0,0,12,31,2002),"/php/","www.quartz.fr",false);
In HTTP documentation domain must have at least two dots.
If I check in the cookies manager of the navigator, the domain is set
as ".www.quartz.fr".
If I don't put path and domain in setcookie(), the domain is correct.
This is a problem only if I want to delete the cookie...
I call
setcookie("visit");
and PHP add the default domain "www.quartz.fr",
and the navigator creat a new cookie!
One for ".www.quartz.fr" and the second for "www.quartz.fr"!
The only
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20571&edit=1