How to reset PHP_AUTH_USER / PHP_AUTH_PW variables?

I am using HTTP Authentication in order to check if somebody can enter a simple CMS system or not. Loggin in is working fine, but loggin out seems to be impossible with this method.

HTTP Authentication requires the user of the protected page to once enter a username and password, which will then remain valid during the entire session, no matter what happens in that browser.

I can’t find a way to let the user logout again, by somehow resetting the $_SERVER[‘PHP_AUTH_USER’] and $_SERVER[‘PHP_AUTH_PW’] variables.

Is anyone aware of a workaround? :xeye:

I do not use HTTP Authentication so I do not know for sure.
Have you tried $_SERVER[‘PHP_AUTH_USER’] = ‘’; ?

no, there are a few methods but hardly any work in IE6

once the log out you can enter a new realm name. some tricks here

http://us3.php.net/features.http-auth