Can't figure out how to logoff...

From: Date: Tue, 09 Jan 2001 22:05:30 +0000
Subject: Can't figure out how to logoff...
Groups: php.general 
Request: Send a blank email to php-general+get-33563@lists.php.net to get a copy of this message
For some time now I have been trying to figure out how to let users log off a page that has required access so they can log on as a different user. But all my attemps fail. I can't unset the values. I tried to force a: Header("WWW-Authenticate: Basic realm=\"Clients\""); Header("HTTP/1.0 401 Unauthorized"); so they could resubmit the info and it just does the standard 3 strikes and your out deal. I have tried to set and unset: $REMOTE_USER $REMOTE_PASSWORD $PHP_AUTH_USER $PHP_AUTH_PW $GLOBALS['REMOTE_USER'] $GLOBALS['REMOTE_PASSWORD'] $GLOBALS['PHP_AUTH_USER'] $GLOBALS['PHP_AUTH_PW'] but the browser just remembers it. Anybody have some tricks they have done. -Bob

« previous php.general (#33563) next »