Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001071

[PHP-DB] Re: Cookie is set? From: Angela Meehan (angela <email protected>)
Date: 07/06/01

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/

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