I am trying to have a single sign on work between different domains (i.e. www.abc.com
What I have tried to do so far is this.
On abc.com, I have a hidden iframe. Once I log in and am forms authenticated on abc.com, I execute this line of code to "auto login" on fff.com (of course I would encrypt all data passed back and forth):
rc"] = "http:/www.fff.com/site1/autologin.aspx?encryptedparams=xxxxx
The autologin.aspx page does this on pageload:
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(
1, "username", DateTime.Now, DateTime.Now.AddMinutes(60
), true, "");
// Get the encrypted version of the ticket
string strEncrypted = FormsAuthentication.Encryp
// Put it into a cookie
HttpCookie hc = new HttpCookie(FormsAuthentica
hc.Expires = DateTime.Now.AddHours(12);
Response.Cookies.Add(hc); // Add it to the cookies collection
The odd thing that I am finding is that this works on IE, but does not on FF or Chrome.
The only way I could get the autologin to the fff.com site working on FF or Chrome is if I set the frame.src in the pageload of the login page of abc.com instead of the login_LoggedIn function.
Any help to get this working on in all browsers in the login_LoggedIn function?