You are here: Re: How to determine if a function has set a cookie? « PHP Programming Language « IT news, forums, messages
Re: How to determine if a function has set a cookie?

Posted by Ian Collins on 02/12/07 22:48

Rik wrote:
> Ian Collins wrote:
>
>> I'm using PHPUnit to test some PHP scripts and I'd like to know if there
>> is a means of checking which cookies have been set by setcookie() in a
>> function under test.
>
>
> There is _no_ way to test which cookies have explicitly been set by
> setcookie(). A cookie is a cookie, and can be set a lot of different
> ways. You can check however which cookies this particular script tries
> to set: <http://www.php.net/headers_list>.
>
Thanks Rik, that's exactly what I'm after.

--
Ian Collins.

 

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

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