Does anyone know what would cause a cookie value to be printed on a web
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.


PHP Database Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to