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
>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
> 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
3 matches
Mail list logo