I am working with Asp.Net MVC and in that I am handling cookies like below :
Response.Expires = 0;
Response.Buffer = true;
Response.ClearContent();
Response.AddHeader("content-disposition", "inline; filename=" + "UserData.pdf");
Response.ContentType = "application/pdf";
Response.BinaryWrite(ms.ToArray());
HttpCookie cookie = new HttpCookie("user", UserId.ToString());
HttpCookie cookieProd = new HttpCookie("prod", ProjectId.ToString());
Response.Cookies.Add(cookie);
Response.Cookies.Add(cookieProd);
HttpCookie cookieProd = HttpContext.Request.Cookies.Get("prod");
HttpCookie cookieUser = HttpContext.Request.Cookies.Get("user");
Which is working perfectly in Chrome however it's not working in Internet Explorer 11. When I am login second time then it's not maintaining cookie for use second time login. So can you help me to solve this one for particular Internet Explorer 11 ?