note 23811 deleted from features.http-auth by alindeman

From: Date: Sat, 03 May 2003 13:44:32 +0000
Subject: note 23811 deleted from features.http-auth by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-47430@lists.php.net to get a copy of this message
To "logout" of HTTP Auth all you have to do it unset PHP_AUTH_USER & PHP_AUTH_PW. I came across this function and it works really well. Below is what i use.(minus a few MySQL vars) if($lo == 1) { $phpuser = unset($GLOBALS['_SERVER']['PHP_AUTH_USER']); $phppass = unset($GLOBALS['_SERVER']['PHP_AUTH_PW']); if(($phpuser == "") && ($phppass == "")) { echo "Now Logged out.<br />"; exit; } } I hope this helps some of you. (if anyone knows who wrote this, please post name below)

« previous php.notes (#47430) next »