Cookie Values being Displayed

From: Date: Wed, 23 May 2001 20:48:14 +0000
Subject: Cookie Values being Displayed
Groups: php.db 
Request: Send a blank email to php-db+get-9586@lists.php.net to get a copy of this message
Does anyone know what would cause a cookie value to be printed on a web page. Here is my cookie code if ($access_level == 5) $region5 = "<P>You have Level 5 Access</p>"; $cookie_name = "acc5"; $cookie_value = "true"; $cookie_expire = ""; setcookie($cookie_name, $cookie_value, $cookie_expire, "/"); } It puts the value of true on the web page if they refresh it. IS there an error in the code there that would cause that? Also are sessions easier to work with when assigning multiple cookie values ? ANy help is muchly appreciated. Kat

« previous php.db (#9586) next »