From:             [EMAIL PROTECTED]
Operating system: cookies and domain
PHP version:      4.1.1
PHP Bug Type:     HTTP related
Bug description:  can not set cookie with domain specified

If I specify a domain, cookie is not set:

This works:
$exp = time()+120;
setcookie ("TestCookie", "TEST$exp",$exp);

This doesn't work:
$exp = time()+120;
setcookie ("TestCookie", "TEST$exp",$exp, "/", "www.domain.com");

Doesn't set a cookie at all. Any ideas?



-- 
Edit bug report at http://bugs.php.net/?id=16342&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16342&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16342&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16342&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16342&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16342&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16342&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16342&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16342&r=submittedtwice

Reply via email to