Re: Auth

From: Date: Fri, 26 Apr 2002 14:19:07 +0000
Subject: Re: Auth
References: 1  Groups: php.pear.dev php.pear.general 
Request: Send a blank email to pear-dev+get-5819@lists.php.net to get a copy of this message
The problem could be in the logout function as the following code fails for me. $my_auth = new Auth( "DB", $options, 'loginFunction', true); $my_auth->setSessionname("My_Session"); $my_auth->start(); if ($my_auth->getAuth()) { echo "HELLO"; } $my_auth->logout(); The user never get logged out and and refresh the page forever? Clearly logout has not remove the session completly. 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

« previous php.pear.dev (#5819) next »