Re: Remember me function
| From: | Brad Brevet | Date: | Fri, 03 Dec 2004 21:57:57 +0000 |
| Subject: | Re: Remember me function | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203479@lists.php.net to get a copy of this message | ||
Well, is what my plan is, is to create a session on log-in along with a
stored cookie, so that once the browser is closed the session is removed and
only the cookie remains for the 30-day time period.
Brad
"Brian Dunning" <brian@briandunning.com> wrote in message
news:E4CF8EEE-4575-11D9-8FC0-000A95BD6AE4@briandunning.com...
> When I use this feature, I set a cookie to Remember Me that lasts for
> six months or a year. That's completely independent of any session(s).
> Often I'll have a 6-month session for storing shopping cart contents,
> and a 30-minute session for storing login status. All kinds of things
> going on.... :)
>
> PS - When using a session that lasts a super long time, like 6 months,
> consider rolling your own session table rather than letting PHP create
> session text files all over your server. They can accumulate rather
> quickly.
>
> Brian Dunning
> http://www.briandunning.com/