Can anyone explain to me why I can't set a cookie thusly?:
setcookie("saved_cuisine_clause",$cuisine_clause,
time()+180);
I am trying to preserve a SQL query over multiple invocations of a PHP page, and this call does absolutely nothing!!!! I'm using IE5 for testing, and I do have cookies enabled. I am making the setcookie call before printing any HTML to the browser. At one point I didn't and I immediately got an error, so I'm pretty sure that's not the problem.
Other things that don't work:
header("Set-cookie: saved_cuisine_clause=" . $cuisine_clause);
setenv("saved_cuisine_clause=" . $cuisine_clause);
In all cases, the next invocation does not have anything in $saved_cuisine_clause...