Might there be a way to set one’s .htaccess file to prompt for authentication each time? Example: I open a browser tab, go to the pw protected url, I’m prompted for a pw. Close the tab (main browser still open) and repeat the above and be prompted for the pw again. This is not happening unless I close the browser. Maybe this is a caching thing?
Here’s what I have so far:
AuthType Basic
AuthName "myName"
AuthUserFile "/home/myDir/.htpasswds/public_html/myName/passwd"
require valid-user
Thanks in advance.
Actually it is working this way (simplified):
As you see – problem lays in browser. You cannot force browser to forget password it uses for a domain. And usually you don’t want to – for example if password protected page contains images – browser would require username and password for each downloaded image.
However there are some tips you could try:
passwdfile; then provide two passwords for each user and switch them on each request; this way browser always remember “wrong” password; it seems crazy but this is an easiest solution I could think of 🙂