Following is the code for setting the cookie:
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, "AuthenticationToken", DateTime.Now,
DateTime.Now.AddSeconds(60), false, "");
string encryptedText = FormsAuthentication.Encrypt(ticket);
Response.Cookies.Add(new HttpCookie("AuthenticationToken", encryptedText));
Following is the code for reading the cookie:
string cookie= Request.Cookies["VPAuthenticationToken"].Value;
this code works fine in Firefox and chrome but does not work in IE 11. This works in IE, Chrome and Firefox on local and Dev. In IE 11, while reading the cookie it is throw null reference exception. I have looked at the Request cookies in Chrome and they are being set to a value whereas the request cookie is not being set in IE 11 I have already tried clearing cookies and setting the security to lowest. Also, this code is triggered from a cross domain call, could that be causing this issue?