[PHP] Re: PHP based authentification -----------

2001-08-24 Thread Ralph Deffke
send an 401 unauthorized header. see php manuall under function header() as an example Alex Sofronie schrieb: > Hi all! > > How can I "logout" from a PHP based auth (with PHP_AUTH_USER and PHP_AUTH_PW > and appropriate headers sent at the beginning)? > It seems like unset($PHP_AUTH_USER) does no

RE: [PHP] Re: PHP based authentification -----------

2001-08-20 Thread Jon Farmer
>Thus, the way to "logout" is to maintain a dynamic unique dataset of >"Realms" and require authentication in a new Realm for any user that is >"logged out Yes, Richard recently advised me simialry. I set a cookie on a successful login and then delete it on a logout. If the cookie is not present

[PHP] Re: PHP based authentification -----------

2001-08-19 Thread Richard Lynch
> How can I "logout" from a PHP based auth (with PHP_AUTH_USER and PHP_AUTH_PW > and appropriate headers sent at the beginning)? > It seems like unset($PHP_AUTH_USER) does not wotk in this case... unset() won't do anything because the *BROWSER* re-sends the username/password for that Realm when i