Jump to content

cookies don't work for one user?


michaellunsford

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]
Link to comment
https://forums.phpfreaks.com/topic/4475-cookies-dont-work-for-one-user/
Share on other sites

Archived

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

×
×
  • Create New...

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.