how can I reset the $REMOTE_USER var to effectivly logout a user??
I am not aware that REMOTE_USER is a standard environmental variable. Might you be talking about REMOTE_ADDR? In any case, they are just informational and have nothing do to with authentication or tracking login status.
-Chris
$REMOTE_USER actually contains the username when using basic HTTP authentication. But, of course, altering its value is useless.
then how can I loggout a user?they are logged in from apaches access.conf file
Oh, thats new to me. I had always used $AUTH_USER when using basic http authentication.
To force user to re-enter login, use this :
Header("WWW-authenticate: basic realm=\"Test Authentication System\""); Header("HTTP/1.0 401 Unauthorized"); exit;
Found at php.net/manual/features.http-auth.php
Hi, my goal (problem!?!) is to print the environment variable that contains the user-name in the protected web page after the authentication.
Can you help me?