From: [EMAIL PROTECTED]
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]