Auth

From: Date: Wed, 24 Apr 2002 18:30:03 +0000
Subject: Auth
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1263@lists.php.net to get a copy of this message
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

« previous php.pear.general (#1263) next »