Possible bug -- Fwd: [PEAR] Auth
| From: | Jesus M. Castagnetto | Date: | Wed, 24 Apr 2002 20:48:59 +0000 |
| Subject: | Possible bug -- Fwd: [PEAR] Auth | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-5784@lists.php.net to get a copy of this message | ||
Forwarding this to pear-dev, had not tested this personally.
--- Glenn Pierce <glenn@fortune-cookie.com> wrote:
> From: Glenn Pierce <glenn@fortune-cookie.com>
> To: pear-general@lists.php.net
> CC: mj@php.net
> Date: 24 Apr 2002 18:30:03 +0000
> Subject: [PEAR] Auth
>
>
> Hi I have a question about Auth.php in pear which may be a bug.
>
> I have used it as follows
>
>
> --------------
>
> $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.
>
>
> This is because the getAuth function in Auth.php detects the session has
> expired then calls logout which destroys the session data including
> auth[registered] and so when control is returned to the page that called
> $my_auth->start() the getAuth function then gets called.
>
> getAuth fails as it examines auth[registered] which no longer exists.
>
> If this is a bug I would be happy to fix it if you have any ideas for
> the direction to take.
>
> If it is an error on my part i'd love to have an answer
>
> Thanks alot.
>
> Glenn
>
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
=====
--- Jesus M. Castagnetto (jcastagnetto@yahoo.com)
Research:
http://metallo.scripps.edu/
Personal: http://www.castagnetto.org/
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/