my Parent domain: aswajith.com My sub domain : Cookie.aswajith.com
I can successfully share cookie to my SubDomain using the below code:
HttpCookie hc = new HttpCookie("UserInfo");
hc.Domain = ".aswajith.com";
HttpContext.Current.Response.Cookies.Add(hc);
Label1.Text = HttpContext.Current.Request.Cookies["UserInfo"].Value;
But i cant share when i change my parent domain to "www.aswajith.com" instead of aswajith.com .
What is the reason ?