Justin French wrote:
> Hi,
> Is there a simple method for checking if cookies are enabled (able to be
> set) on a browser?  The only method I can think of is setting the
> cookie, then refreshing the page (or going to another URL) in order to
> tet if the cookie exists... which sounds messy.

It is the only reliable method, but make sure if you try persistent
cookies first to fallback to session cookies if persistent fail.

> I'd prefer not to use anything client-side (javascript etc).

The user may have a cookie enabled browser with Javascript disabled.

Manuel Lemos

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to