RE: [PHP-WIN] Domain Authentication

From: Date: Tue, 11 Jun 2002 15:15:24 +0000
Subject: RE: [PHP-WIN] Domain Authentication
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-14186@lists.php.net to get a copy of this message
Kill the session? > -----Original Message----- > From: Blaine Dinsmore [mailto:DinsmoreB@michigan.gov] > Sent: Tuesday, June 11, 2002 4:54 PM > To: php-windows@lists.php.net > 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 >

« previous php.windows (#14186) next »