Re: A session class (was Re: [PEAR-DEV] Namespace issues)
| From: | Martin Jansen | Date: | Fri, 17 May 2002 09:36:48 +0000 |
| Subject: | Re: A session class (was Re: [PEAR-DEV] Namespace issues) | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6189@lists.php.net to get a copy of this message | ||
On Fri, 17 May 2002 10:50:53 +0200, Bertrand Mansion wrote:
>For instance, if you want to have a checkbox in your registration form which
>says 'Remember Me', so that when the user reconnects, he won't have to logon
>again, it is not possible because you can't set a new cookie with a
>different expiration date.
You can use ini_set("session.cookie_lifetime", 3600*70); to change the
cookies lifetime to one week globaly. When doing that, PEAR::Auth should
"remember" the login for one week also.
- Martin
--
Martin Jansen, <mail@martin-jansen.de>
http://www.martin-jansen.de/