Hello,
I have a series of applications that have URLS like the following:
http://www/root/app1
http://www/root/app2
http://www/root/app3
All have the same domain and root URL, but different application node names.
I need to have a single sign-on for all of the web applications. I've tried
using the same cookie name in the forms authentication configuration, but
that doesn't work. is there something I should be doing? I encode my custom
user login ID into the forms authentication cookie using the following code:
FormsAuthentica tion.SetAuthCoo kie(myUserName, false);
string uniqueKey = MyCryptoCode.En crypt(id.ToStri ng(), MY_COOKIE_KEY);
HttpCookie authCookie =
HttpContext.Cur rent.Request.Co okies[FormsAuthentica tion.FormsCooki eName];
FormsAuthentica tionTicket ticket =
FormsAuthentica tion.Decrypt(au thCookie.Value) ;
ticket = new FormsAuthentica tionTicket(
ticket.Version,
ticket.Name,
ticket.IssueDat e,
ticket.Expirati on,
ticket.IsPersis tent,
uniqueKey,
ticket.CookiePa th);
authCookie.Valu e = FormsAuthentica tion.Encrypt(ti cket);
Response.SetCoo kie(authCookie) ;
Thanks
-- Jake