My site is hosted on a linux server with apache webserver software and I do
not have controll over the server settings.
I want to password protect two separate directories at my website with the
same username and passwords:
Example:
Username: member
Password: password
Directories needed to be protected:
www.mydomain.com/members/
www.mydomain.com/albums/memberalbums/
There is the same .htaccess and .htpasswd file in both directories,
containing the same username and password in each.
I want to use the same username and password combination for these two
separate directories. My visitors are requested to enter the credentials in
two directories separately, but I want to enable them to enter both
directories by only one authentication. I am not able to do this by the
whole website, because there are some directories without authentication.
How can I make only one authentication for two separately located
directories by using same username and password pair so that my visitors do
not need to authenticate a second time once they authenticate in any one of
the directories?