[PHP] Re: Still fighting setcookie

2005-03-27 Thread Jasper Bryant-Greene
Jasper Bryant-Greene wrote: [snip] function setcookie2($name, $value="", $expire="", $path="", $domain="", $secure=false) { $_COOKIES[$name] = $value; return setcookie($name, $value, $expire, $path, $domain, $secure); } [snip] Sorry, that should be: $_COOKIE[$name] = $value; -- Jasper Br

[PHP] Re: Still fighting setcookie

2005-03-27 Thread Jasper Bryant-Greene
John Hinton wrote: OK, I created this most simplistic script.. [snip] I would expect the return on action=1 to report the set cookie, but instead, it has no data. If I then reload the browser, the cookie appears. How can I get the cookie to set without this reload? What am I missing? Thanks a