|
Q. I have two different websites with different domain names (ie www.abc.com and www.efg.com), and I only want the user to log in once for access to both of them. A. 1) If the two domain names are off the same primary domain (eg roundPeg.maximus.com and squareHole.maximus.com) then be sure the the Realm is identical for both of them. This should cause the browser to supply the username and password to both. If this does not work, or if the two domains are different (eg www.theOne.com and www.theOther.com) then
2) Using Basic Authentication, create an ASP page, which
gets the
currentusername
and
password. Then constuct a URL link of the form
3) If you are using cookie-based protection, then make the link a POST and in the form, have a couple of hidden fields which correspond to the username and password. POST to a non protected ASP page on the second webserver, have that ASP page set the cookies on that server, and redirect into the protected area.
|
|