From:             [EMAIL PROTECTED]
Operating system: Windows NT 5.0
PHP version:      4.3.0RC1
PHP Bug Type:     Session related
Bug description:  setcookie() and domain

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 bug report at http://bugs.php.net/?id=20571&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20571&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20571&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20571&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20571&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20571&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20571&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20571&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20571&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20571&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20571&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20571&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20571&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20571&r=isapi

Reply via email to