Re: Remember me function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Brad Brevet wrote:
> Nevermind, I figured it all out, thanks for the info.
>
> "Brad Brevet" <bradbrevet@xxxxxxxxxxxxxxxxx> wrote in message
> news:20041203174334.6711.qmail@xxxxxxxxxxxxxxx
>> Is this the all I would need to do to set a cookie with a username
>> stored
>> for 30 days? Sorry I am new at this.
>>
>> setcookie ("Cookie Name", $username, time()+60*60*24*30);


Be sure you provide a path whenever you provide a time to setcookie.

Various versions of IE are badly broken and ignore the time part unless
there is also a path part.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux