Re: Remember me function
| From: | Greg Donald | Date: | Fri, 03 Dec 2004 16:23:01 +0000 |
| Subject: | Re: Remember me function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203434@lists.php.net to get a copy of this message | ||
On Fri, 3 Dec 2004 07:38:47 -0800, Brad Brevet
<bradbrevet@ropeofsilicon.com> wrote:
> Hey all, I have a log-in all set up on my site using PHP Sessions but I want
> to add the Remember Me function, but I don't know what to set in the cookie
> to make it that way. Please help. :)
Set a cookie, then check for it later. If it exists, bypass the login
and grant a session or whatever you're doing now for logged-in users.
You might also want to set a session variable that the cookie has been
'looked for' so it doesn't relog them in on each page request.
php.net/setcookie
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/