You are here: Re: [PHP] set cookie function problem « PHP « IT news, forums, messages
Re: [PHP] set cookie function problem

Posted by Marek Kilimajer on 04/19/05 21:40

Ospinto wrote:
> o....k.......what does that have to do with my problem?

The time is send in GMT, and your computer is set to GMT -7. So the
cookie is set to expire in the past.

>
> "Marek Kilimajer" <lists@kilimajer.net> wrote in message
> news:42654D30.30500@kilimajer.net...
>
>>Ospinto wrote:
>>
>>>Hi,
>>>Can someone help me with this problem?
>>>setcookie('myCookie',"blah");
>>>works fine. but when i try to set it with an expiry time, it doesn't.
>>>setcookie('myCookie',"blah",time()+3600);
>>>
>>>I have cookies enabled on my browser of course. And the way I know the
>>>second statement is not working is cos I'm doing a var_dump of
>
> $_COOKIES.
>
>>>Thanks for your help.
>>>
>>
>>Fix the timezone on your computer. It's 20:25 here and your message
>>"will" arrive in my mailbox at 23:20.
>
>

 

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

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