Possible Duplicate:
HTTP authentication logout via PHP
I’m using .htaccess
(and .htpasswd
) to protect a folder in my website.
This works fine, when I login for the first time, from any computer, I’ve been requested to enter the login and the password in order to access to the protected folder.
My problem is that the login screen appears only once, so after the first login I can access to the protected folder anytime without the login screen.
How can I make the login screen to appear for each time that I try to access this folder?
P.S. In the login screen, “Remember My Credential” checkbox is empty and cleaning cookies, passwords etc’ in the browser history under “Safety”, still doesn’t help.
The following is my .htaccess
file:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/mysite/.htpasswd
AuthGroupFile /dev/null
require valid-user
Is it anyhow related to this code line: AuthType Basic
?
Thanks for any advise,