After you unset them, the *BROWSER* re-presents the values that it has...

You can only change the "REALM" out from under the browser to get a new
dialog.

Keep track of a dynamic range of realms to present, and who's in which realm
etc.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Jason Bell <[EMAIL PROTECTED]>
Newsgroups: php.general
To: PHP Users <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 4:06 PM
Subject: unset($PHP_AUTH_USER, $PHP_AUTH_PW)


anyone know why this isnt working for me?

if (isset($PHP_AUTH_USER) && isset($PHP_AUTH_PW)) {
        CheckCredentials($PHP_AUTH_USER,$PHP_AUTH_PW);
        unset ($PHP_AUTH_USER, $PHP_AUTH_PW);
} else if ($AuthAction) {
        auth($AuthAction);
};

If someone submits false credentials, the page keeps $PHP_AUTH_USER and
$PHP_AUTH_PW, and won't allow another login attempt until the browser is
closed. Is there another way to effectively "unset" the variables?

Thanks,

Jason Bell







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to