For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2005 > Re: [PEAR] Question about Auth









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Question about Auth
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,
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com