Re: Auth:: Persistent authentification
| From: | Martin Jansen | Date: | Thu, 13 Feb 2003 16:20:23 +0000 |
| Subject: | Re: Auth:: Persistent authentification | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-3749@lists.php.net to get a copy of this message | ||
On Thu Feb 13, 2003 at 02:2833PM +0100, Jean-Marc Fontaine wrote:
> I am using Auth:: and I think it is quite good but I also think it lacks a
> feature.
>
> Currently it only handles authentification for a session. It is very unhandy
> for my purposes because my visitors have to authentify each time they come
> to my site. I would like to implement a cookie based authentification in
> order to avoid this.
>
> I have seen no way to do it in the current version of Auth:: so I am
> planning to add it by myself but first I would like to know if this feature
> had already been added by someone and what you people on list newsgroup
> think of it.
>
> I would like to add a duration (in days) for the cookie in the login part. A
> value of 0 would mean "only for this session".
Have you tried playing around with session.cookie_lifetime? Setting it
to a higher value should make the login session "live for a longer
time".
--
- Martin Martin Jansen
http://martinjansen.com/