Re: Remember me function
| From: | Richard Lynch | Date: | Mon, 06 Dec 2004 18:54:31 +0000 |
| Subject: | Re: Remember me function | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203636@lists.php.net to get a copy of this message | ||
Brad Brevet wrote:
> Nevermind, I figured it all out, thanks for the info.
>
> "Brad Brevet" <bradbrevet@ropeofsilicon.com> wrote in message
> news:20041203174334.6711.qmail@pb1.pair.com...
>> 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