You are here: Re: Cookie problems!! « PHP Language « IT news, forums, messages
Re: Cookie problems!!

Posted by Oli Filth on 06/13/05 18:02

Jam Pa said the following on 13/06/2005 15:56:
> I have a page with some cookie functionality.
>
> I set the cookie, and 'setCookie' returns true (=success).
>
> However 'print_r($_COOKIE)' shows that no cookies were set.
>

$_COOKIE[] only holds the cookie variables that have been *sent* from
the user's browser. Therefore if you call setCookie(), you won't see
anything in $_COOKIE[] until after the user refreshes (or moves to
another page on your site).


--
Oli

 

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

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