Let say I have two domains(A,B). Domain A page is redirecting his page to a Domain B page. But before redirecting Domain A page need to set a cookie. I have tried this code on domain A page but it is not working,
var cookie = new HttpCookie("ID", id);
Response.Cookies.Add(cookie);
Response.Redirect("Domain B page");
Update: From my understanding the ID cookie is saving in Domain A instead of Domain B.