<?php
$alertthem = "Testing your browser for cookies.";

if(empty($check)){
        $page = "$PHP_SELF?check=1";
        header("Location: $page");
        setcookie("testcookie","1");
}
else{
        if(empty($testcookie)){
                $alertthem = "<H3>Please enable cookies.<br>You need cookies to shop 
this
site</h3>";
        }
        else{
                header("Location: somepage.php3");
        }
}
?>

-----Original Message-----
From: Galvin, Max [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 9:45 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Setcookie


Is there any way to see whether or not the cookie setting has actually
worked without going to another page? I suspect there isn't but I'd like
confirmation ;)

Cheers

Max

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
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