| bertrand Gugger 2005-05-10, 8:57 pm |
| 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 ti
mes (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,
>
>
>
|