Kill the session? > -----Original Message----- > From: Blaine Dinsmore [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 11, 2002 4:54 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Domain Authentication > > > 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>"; > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php