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
|