How To Logout Of A Htaccess Password Protected Directory?

liunx

Guest
I have an .htaccess password protected directory which uses PHP to display content besed on who is logged in (using $_SERVER['PHP_AUTH_USER']). What I would like to do is make a logout script that would allow the user to leave the password-protected area and erase the password from the browser's cache without having to close their browser window. I've noticed that the CPanel does exactly that with a PHP logout page. How can I make a similar page?<!--content-->
It looks like there is much information submitted by usesr on this page. It may help.<br /><br /><a href="http://us2.php.net/features.http-auth" target="_blank">http://us2.php.net/features.http-auth</a><!--content-->
 
Back
Top