You are here: Re: newbie simple problem with cookie « All PHP « IT news, forums, messages
Re: newbie simple problem with cookie

Posted by Stefan Rybacki on 03/29/06 16:49

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Graham schrieb:
> "David Graham" <david.graham18@ntlworld.com> wrote in message
> news:85vWf.38278$u31.10281@newsfe2-win.ntli.net...
>> Hi
>> Why does my cookie not get set?
>> I just get "Your last visit was - " and nothing else
>> thanks
>> Dvaid Graham
>>
>> <?php
>> //Calculate 60 days in the future
>> //seconds * minutes * hours * days + current time
>> $inTwoMonths = 60 * 60 * 24 * 60 + time();
>> setcookie(lastVisit, date("G:i - m/d/y"), $inTwoMonths);

try to set lastVisit between ' and '
If this doesn't work, try to use path and domain parameters as well.

>...
Regards
Stefan

>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)

iD8DBQFEKpBUyeCLzp/JKjARAmZgAJ9MeA+PfjCJbYzBfMIrzRfIp5GAbgCffU7q
k9j0Ck845iS8wirNFexolvA=
=PmaT
-----END PGP SIGNATURE-----

 

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

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