You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/01/13 17:11:09 UTC

DO NOT REPLY [Bug 15991] - Apache (PHP?) can't set cookies after a test with an unset variable

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15991>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15991

Apache (PHP?) can't set cookies after a test with an unset variable





------- Additional Comments From ElfQrin@ElfQrin.com  2003-01-13 16:11 -------
Sorry, the example will not work anyway because I've commented the text within
the if statement, resulting in commenting the closing bracket as well. 

This is a shorter and correct example:

<?
# $test="";
setcookie("debug","1",0,"","");
if ($test=="") { echo ""; }
setcookie("debug","3",0,"","");
echo "Cookie: [".$_COOKIE["debug"]."] (HIT RELOAD)<BR>";
?>

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org