|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-06-14 14:50 UTC] sniper@php.net
[2001-06-14 16:24 UTC] afeks at mediaafeks dot com
[2001-06-19 09:44 UTC] sniper@php.net
[2001-07-22 13:15 UTC] andy@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 21:00:02 2025 UTC |
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