Domain Authentication
| From: | Blaine Dinsmore | Date: | Tue, 11 Jun 2002 14:53:37 +0000 |
| Subject: | Domain Authentication | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14185@lists.php.net to get a copy of this message | ||
Can someone tell me how I can force re-authentication to log in a different user?
It seems that once I'm authenticated I'm recognized and will not be prompted again for a
password even on a refresh.
Thanks,
Blaine
if (!isset($_SERVER['REMOTE_USER'])) {
header( 'WWW-Authenticate: Basic realm="myrealm"' );
header( 'HTTP/1.0 401 Unauthorized' );
echo 'Authorization Required.';
exit;
} else {
$userid = $_SERVER['REMOTE_USER'];
echo "Your username is: $userid <br>";