You are here: Re: cookie oddity « PHP Language « IT news, forums, messages
Re: cookie oddity

Posted by Marnok.com on 06/12/07 07:54

"Charles Crume" <NOccsSPAM@charlescrumesoftware.com> wrote in message
news:466dfc36$0$17142$4c368faf@roadrunner.com...
> Well... how about telling us what it was?
>
> Charles...


Oh, just an RTFM moment. I set the cookie using only the name and the value
and the time. When I added the extra parameters - path and domain most
important - it worked as it was supposed to.

If anyone else has the problem, remember to
setcookie("name", $value, $time, '/','.mysite.com',0);

as soon as I got some fresh air to clear my head then re-read
http://www.php.net/manual/en/function.setcookie.php , the example for the
"domain" parameter made it perfectly clear to me.

 

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

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