Re: Auth
| From: | Glenn Pierce | Date: | Mon, 29 Apr 2002 12:16:18 +0000 |
| Subject: | Re: Auth | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5880@lists.php.net to get a copy of this message | ||
Hi this patch in Auth.php get rid of the errors regardinh the missing
timestamp after a page is refreshed more than once.
$this->logout();
$this->expired = true;
$this->status = AUTH_EXPIRED;
- Auth::updateIdle();
return false;
I am not sure why we update the idle time after we have expired anyhow?
Is the any problems with this?
Thanks
On Thu, 2002-04-25 at 05:34, Martin Jansen wrote:
> On 24 Apr 2002 18:30:03 +0000, Glenn Pierce wrote:
>
> >$my_auth = new Auth( "DB", $options, 'loginFunction', true);
> >
> >$my_auth->setExpire(300);
> >
> >$my_auth->start();
> >
> >if (!$my_auth->getAuth()) {
> >
> > die;
> >
> > }
> >
> >PAGE TEXT GOES HERE
> >
> >
> >
> >I am geting a error
> >
> >Warning: Undefined index: registered in
> >/home/glenn/www/bda/includes/Auth/Auth.php on line 513 when the session
> >expires.
>
> It looks like a bug indeed. Could you please try the patch from
> http://www.martin-jansen.de/pear/Auth-1.0.1.patch. Does it work
> now?
>
> - Martin
>
> --
> Martin Jansen, <mail@martin-jansen.de>
> http://www.martin-jansen.de/
>
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Glenn Pierce
Senior Object Developer
Fortune Cookie (UK) Limited
Direct dial +44 (0)20 7843 6794
Switchboard +44 (0)870 736 1000
Fax +44 (0)870 736 5000
http://www.fortune-cookie.com
Please note the opinions expressed in this email are those
of the author and do not necessarily represent the policy
of Fortune Cookie (UK) Limited.
If you believe you have received this email in error please
destroy it and notify support@fortune-cookie.com or
call +44 (0)870 736 1000.
Fortune Cookie (UK) Limited's full email policy is available at
http://www.fortune-cookie.com/email