I use .htaccess to password protect my albums and it works fine but with one annoying issue. I get multiple requests for username and password. The number of requests is equal to the number of thumbnails on the page. I am assuming that for every thumbnail loaded on the page I am asked for the username and password. But once the page is fully loaded I am not asked for it again in the session even if I browse to the next page or other albums under the same collection that is protected under the same .htaccess
I was able to fix it myself. Since I needed to protect the entire folder and not just specific albums or collections I placed the code requesting the password within the .htaccess of plogger in the parent directory and created the password file.