Re: unset($PHP_AUTH_USER, $PHP_AUTH_PW)
| From: | Richard Lynch | Date: | Thu, 30 Aug 2001 10:36:56 +0000 |
| Subject: | Re: unset($PHP_AUTH_USER, $PHP_AUTH_PW) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65244@lists.php.net to get a copy of this message | ||
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 richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
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 <jbell@barkingrat.com>
Newsgroups: php.general
To: PHP Users <php-general@lists.php.net>
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