You are here: Re: Storing cookie on the client « All PHP « IT news, forums, messages
Re: Storing cookie on the client

Posted by J.O. Aho on 10/13/10 11:31

Mike wrote:
> I have some pretty simple code to create a cookie and I know its
> created because I echo it.
> But I look in my Cookies folder and theres nothing there.
> Shouldnt this work?
> <?php
> setcookie("Testing",'',2147483647);
> ?>
>
You should set the path and domain too, as there are broken browsers who won't
handle the cookie otherwise

<?PHP setcookie("Testing",'',2147483647,"/",$_SERVER['SERVER_NAME']); ?>

If this don't work the whole fault is in _YOUR_ browser.



//Aho

 

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

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