Jump to content

Archived

This topic is now archived and is closed to further replies.

michaellunsford

cookies don't work for one user?

Recommended Posts

walked an end user through the process of checking that cookies were turned on in his browser, but my little cookie test page says he doesn't. Seems to work for everyone else though. Any ideas?

note to the code -- this is an approximation of the acutal code.
[code]
<?
    if(!$_GET['cookietest']) {
        setcookie("test-cookie","test");
        header("Location :".$_SERVER['PHP_SELF']."?cookietest=true");
        die();
    } elseif ($_COOKIE['test-cookie']!="test") echo "COOKIES ARE DISABLED";
    else echo "You're good. Cookies are ON";
?>
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.