Re: Reseting PHP_AUTH_USER or REMOTE_USER

From: Date: Thu, 17 May 2001 14:53:37 +0000
Subject: Re: Reseting PHP_AUTH_USER or REMOTE_USER
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53249@lists.php.net to get a copy of this message
> I have tried to reset the $PHP_AUTH_USER and/or $REMOTE_USER from within my > php scrips to force a user re-login to apache's ht authentication, but I cant > seem to set it from inside a php script > I've tried putenv($REMOTE_USER = ''); > and > $PHP_AUTH_USER = ""; > and several other variations of the two but still I'm getting nowhere.. > can anyone help please This can't be done as the remote browser sends this information on each request and those variables get recreated. You need to either change the realm or send another 403 to force the remote client to stop sending these. Check the mailing list archives for all sorts of discussions on this. -Rasmus

« previous php.general (#53249) next »