RE: [PHP] Setcookie From: Jason Radley (php <email protected>)
Date: 08/31/01

<?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:m.galvin <email protected>]
Sent: Friday, August 31, 2001 9:45 AM
To: 'php-general <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: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>