Re: Auth and sessions
| From: | Bertrand Mansion | Date: | Fri, 03 May 2002 13:00:58 +0000 |
| Subject: | Re: Auth and sessions | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-1326@lists.php.net to get a copy of this message | ||
le 3/05/02 14:50, Martin Jansen à mail@martin-jansen.de a écrit :
> On Fri, 03 May 2002 14:32:49 +0200, Bertrand Mansion wrote:
>
>> When using Auth, is there a way to change the session cookie lifetime ?
>> For instance, I have a login form with a 'Remember me' checkbox. If the box
>> is checked, I want the cookie to last a very long time. If not checked, I
>> want the cookie to persist only until the user quits the browser.
>
> You should be able to use ini_set("session.cookie_lifetime", 1234)
> in order to change the maximum session lifetime. Right now, there
> is no built-in mechanism for this.
>
>> How PHP sessions and Auth are related ?
>
> PEAR::Auth directly uses PHP's built-in session extension.
>
>> There are no setIdle public method in Auth, is that normal ?
>
> PEAR::Auth is fu**ed up in some major points ;-). I will be working on
> this in the next time.
>
> - Martin
Thanks Martin, I will try your tips.
I remember of phplib authentication system and I quite liked it but it was
more complex than PEAR Auth. Now, it looks a bit old especially because you
need to override everything but the logic behind was good. There was also a
way to handle permissions but this was incomplete as far as I remember.
Anyway, you might want to have a look at it when you will have time to work
on Auth.
Bertrand Mansion
Mamasam