Bug #16342: can not set cookie with domain specified
| From: | myaddress at iname dot com | Date: | Fri, 29 Mar 2002 12:36:06 +0000 |
| Subject: | Bug #16342: can not set cookie with domain specified | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-3602@lists.php.net to get a copy of this message | ||
From: myaddress@iname.com
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