Re: A session class (was Re: [PEAR-DEV] Namespace issues)
| From: | Bertrand Mansion | Date: | Fri, 17 May 2002 16:24:28 +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-6202@lists.php.net to get a copy of this message | ||
le 17/05/02 11:36, Martin Jansen à mail@martin-jansen.de a écrit :
> 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.
Great ! I forgot to play with ini_set. Thanks Martin.
Bertrand