Bug #11492: Cookie function being parsed by PHP
| From: | afeks at mediaafeks dot com | Date: | Thu, 14 Jun 2001 18:05:46 +0000 |
| Subject: | Bug #11492: Cookie function being parsed by PHP | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57167@lists.php.net to get a copy of this message | ||
From: afeks@mediaafeks.com
Operating system: freeBSD 4.2
PHP version: 4.0.5
PHP Bug Type: Unknown/Other Function
Bug description: Cookie function being parsed by PHP
I wanted to point out something for the parsing of a setcookie function in PHP on Apache/FreeBSD.
If I set a cookie with no attributes like:
setcookie("cookietype", "chocolateChip");
It seems to work fine I can place it before the headers and call it after I select a link. Your
function list on the quickref page states that setcookie is involved in the NS cookie standard
format.
i.e. int setcookie("cookie_name", "cookie_value", expire_time,
"location", "url", security);
When I set a cookie as:
setcookie("cookieType", "oatmealRaisen", time()+45000, "/",
".foo.com");
It will not show up or even set. I cleared all of my cookies and accessed the page. My script sets
the cookie before the header information and then I click a link to a test page that calls the
cookie and tries to echo the value. No value, check my cookies folder and no cookie. Do I need to
modify the cookie function in PHP source to work on freeBSD or is it missong some special module
that parses cookies responsibly.
--Jimmy
--
Edit Bug report at: http://bugs.php.net/?id=11492&edit=1