You are here: Re: number of cookies and if there are any cookies set? « PHP « IT news, forums, messages
Re: number of cookies and if there are any cookies set?

Posted by M. Sokolewicz on 10/12/50 11:14

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация