unset($PHP_AUTH_USER, $PHP_AUTH_PW)
| From: | Jason Bell | Date: | Wed, 29 Aug 2001 21:06:08 +0000 |
| Subject: | unset($PHP_AUTH_USER, $PHP_AUTH_PW) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-65108@lists.php.net to get a copy of this message | ||
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