Re: number of cookies and if there are any cookies set?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



AndreaD wrote:

I need two bits of info...

(i) Are there ANY cookies set?

if(count($_COOKIES) > 0) {
echo 'cookies are set';
} else {
echo 'no cookies set, or to be more precise, no cookies are set which are available to this site';
}
(ii) How many cookies are set?

echo count($_COOKIES);

how do I find this information out?


AD

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux