I'm setting a cookie in Javascript:
document.cookie = "lang=" + lang + ";path=/;domain=" + window.location.hostname + ";";
If I check the cookies in the browser, I can see this one. But when I run :
@if (Response.Cookies.AllKeys.Contains("lang")) {
@Response.Cookies["lang"].Value;
}
I get no output.