Re: environment variables
| From: | Soeren Staun-Pedersen | Date: | Thu, 01 Jun 2000 17:06:03 +0000 |
| Subject: | Re: environment variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-847@lists.php.net to get a copy of this message | ||
> Hi,
>
> I am using .htaccess to authenticate users, but I need help. After they logout, I want to
> unset the $REMOTE_USER / $PHP_AUTH_USER variables. How can I do this?
There is no way, if you read the spec for the HTTP protocol, to log out a
user. The only thing you can do is invalidate his session if he has a such
or send him another validation request. A new validation request will
destroy the old, but also bring up the ".htaccess login box".
Cheers,
Soeren Staun-Pedersen - Staun@SunSITE.auc.dk
------
"The internet is full, beat it"
- Me.