Re: Question about Auth
| From: | bertrand Gugger | Date: | Tue, 10 May 2005 17:40:51 +0000 |
| Subject: | Re: Question about Auth | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19146@lists.php.net to get a copy of this message | ||
Odile,
I'm really sorry you got no answer.
Unfortunately I don't answer you.
Just want to pull up your thread instead of making a new one for:
HOW TO LOGOUT PROPERLY:
if (isset($_POST['logout'])) {
$a->logout();
$_POST['username'] = $_POST['password'] = '';
@$a->start();
exit;
}
// (restart with empty user/pass is necessary)
PLEASE PEOPLE, ANSWER odile !
à+
bertrand Gugger aka toggg
Odile Bénassy wrote:
Hello, I have been using PEAR::Auth in an educational project and it was working well, yet now users can't login. More details - I get no error message even if I enable ERROR_ALL and DISPLAY_ERRORS - $this -> session exists but stays empty even after login, so checkAuth() (in Auth.php) returns false - a session file is well created on the server (/var/lib/php4/sess_****), but contains only « _authsession|N; » - I noticed that the constructor Auth_Container_DB($dsn) is called when the login form is displayed, but not afterwards, when you actually login; constructor Auth($storageDriver, $options = '', $loginFunction = '', $showLogin = true) is called all the times (twice for the login form, only once when you login) - I noticed, too, that function _connect($dsn) is never called Can you help ? Of course I haven't changed the Auth code. (only upgraded). @version $Revision: 1.93 $ I haven't changed my own code I might have changed a (PHP) configuration file on the server Thanks in advance for your help,