> Karl J. Stubsjoen [[EMAIL PROTECTED]] wrote:
> > Hi,
> >
> > I need to test for cookies.  What is the simplest way to do this?
>
> Be a little more specific - do you want to know if there
> are cookies at all, or if there are specific cookies?
>
> Depends on the settings in the Data Handling section of your
> php.ini.  With register_globals = On and track_vars = On, I
> can do this:

both of these are On.  Is this a *FOR SURE* way to tell if cookies are
enabled on the
client machine???

>
>    if (sizeof($HTTP_COOKIE_VARS) == 0) {
>       error_log("no cookies!!!");
>    }
>
>
>    or
>
>
>    if (empty($HTTP_COOKIE_VARS["my_cookie_1"])) {
>       error_log("my_cookie_1 doesn't exist!");
>    }
>
>
> HTH.
> --
> Hardy Merrill
> Mission Critical Linux, Inc.
> http://www.missioncriticallinux.com
>
> >
> > Thanks - Karl
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to