Reputation: 1001
I am working on an application where I am opening another tab with different application. I am setting a cookie "X" in first browser, When ever some activity happens on second tab I am updating this using response cookie(first delete and again create).
Response.Cookie.Add("X");
But when I try to access this cookie in the first tab, I am not getting the updated value from second tab. Is this not possible.
Upvotes: 2
Views: 1414
Reputation: 1249
If your applications are on different servers then for security reasons, browser doesn't let one domain to access another domain's cookie.
And we can not set domain of a cookie programatically due to security reasons again.
Upvotes: 5