I have a peculiar problem with the same IE browser session repeatedly challenging for login credentials when switching between pages the reside within 2 different Basic Authentication realms on the same Apache server.
E.g.
http://acme.co.nz/downloads/welcome.html navigates to a page that Apache routes to a <Directory> container protected by password file, pwd_file1 and assigned to a realm of its own via a specific AuthName of DownloadRealm.
And
http://acme.co.nz/cgi/main.mbr/macro navigates to a page that Apache routes to a <Location> container (for serving cgi requests) protected by password file, pwd_file2 and assigned to a realm of its own via a specific AuthName of ServiceRealm
Normally one expects to login once when navigating between these urls as they are protected by different passwords in different realms despite residing in the same domain.
On subsequent visits in the same browser session one expecst that the browser would have cached the credentials so that there is no need to repeat the authentication.
But IE repeatedly presents the login prompt when switching between the urls even though it shows that each is in a different realm.
Strangely FireFox forces you to make only one such repetition which is not as bad.
What is really odd is that this behaviour does not appear when both the Apache containers are <Location> containers It occurs only when one is a <Directory>.
Although website visitors are probably not going to be frequently switching between the urls, this is most annoying and I haven't found a solution despite trying <VirtualHost> containers and others things.
Has anyone encountered or resolved this anomally.
Peter
#####################################################################################
This correspondence is for the named person's use only. It may contain confidential
or legally privileged information, or both. No confidentiality or privilege is waived
or lost by any mistransmission. If you receive this correspondence in error, please
immediately delete it from your system and notify the sender. You must not disclose,
copy or rely on any part of this correspondence if you are not the intended recipient.
Any views expressed in this message are those of the individual sender, except where
the sender expressly, and with authority, states them to be the views of Veda.
If you need assistance, please contact Veda on either :-
Australia 1300-762-207 or New Zealand +64 9 367 6200
As an Amazon Associate we earn from qualifying purchases.