Posted on: 4/21/2010 6:13:16 PM | Views : 631

I have 2 subdomains:
www.mysite.com
store.mysite.com

I followed these instructions: http://www.codeproject.com/KB/web-security/aspnetsinglesignon.aspx
The only thing I don't understand is where to put the cookie code?

Dim C As System.Web.HttpCookie = _ System.Web.Security.FormsAuthentication.GetAuthCookie(UserName, False) C.Domain = "example.com" Response.AppendCookie(C) Response.Redirect(System.Web.Security.FormsAuthentication.GetRedirectUrl(UserName, False)) Does this go in the LoginControl_LoggedIn event?  Application_AuthenticateRequest?

Also, what if I have 2 different domains?

Go to the complete details ...