Re: Cookie is set?
| From: | Angela Meehan | Date: | Fri, 06 Jul 2001 14:53:22 +0000 |
| Subject: | Re: Cookie is set? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-10119@lists.php.net to get a copy of this message | ||
Here's the way I check:
-Set a cookie on the user's machine. I name mine sessionid.
-Redirect to a new page using header("location: acceptcookies.php");
-On the new page, check to see if the variable has a value. For
example, I would check to see if $sessionid=="" and if it's true then
their machine didn't accept the cookie (or the cookie was set with a
blank value). If it's false then the cookie was set correctly.
Hope this helps.
-Angela
>anyone have a good method or code snippet to check if
>the user is accepting cookies?
>
>Thanks
>
>luis
>
>__________________________________________________
>Do You Yahoo!?
>Get personalized email addresses from Yahoo! Mail
>http://personal.mail.yahoo.com/