httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nico <>
Subject Re: [users@httpd] How to unset $PHP_AUTH_USER and $PHP_AUTH_PW
Date Thu, 15 Dec 2005 06:08:38 GMT
2005/12/15, Max Yu <>:

> We run apache 2.0.52 on Fedora Core 3. After log out, the userid
> and password are stored in $PHP_AUTH_USER and $PHP_AUTH_PW,
> unless close the browser completely. It can be automatically
> relogin if click the login bottun again. So we have to set up
> login in twice to prevent illegal login.
> So how to unset $PHP_AUTH_USER and $PHP_AUTH_PW when logout, so
> user doesn't need to close the browser?


This problem comes from PHP and not from Apache.
These variables are stored on the browser.
You must create a session (if it is not already done) and to destroy
it : session_detroy();

See this :

And read sample code. There are many examples to login/logout
This one works with IE6 and FireFox :

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message