You are here: Re: How to set a session cookie with a path? « All PHP « IT news, forums, messages
Re: How to set a session cookie with a path?

Posted by John Drako on 10/11/20 11:53

On Thu, 20 Jul 2006 16:29:10 -0400, Janwillem Borleffs wrote
(in article <44bfe793$0$76723$dbd49001@news.euronet.nl>):

> John Drako wrote:
>> I tried:
>>
>> setcookie("cookie_name", $cookie_value, "", "/");
>>
>> and
>>
>> setcookie("cookie_name", $cookie_value, "0", "/");
>>
>> and of course none of them worked.
>>
>
> The manual says:
>
> "Because the expire argument is integer, it cannot be skipped with an empty
> string, use a zero (0) instead"
>
> So, do not use "0" but 0.

Thanks. I don't know how I missed that.

 

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

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