Hello to all,
I'm trying to create a tracking cookie but I'm not getting the cookie is created.
already experienced in two different browsers because one of them could be blocking the cookie
I am using this code to create:
HttpCookie CookieDeControlo = new HttpCookie("CookieDeControlo");
CookieDeControlo["CookieStatus"] = "Valor do cookie";
CookieDeControlo.Expires = DateTime.Now.AddHours(24);
Response.Cookies.Add(CookieDeControlo);
when I create the cookie go to the files to see if the cookie was created while using this code to retrieve the cookie:
string CookieStatus = string.Empty;
HttpCookie myCookie = new HttpCookie("CookieDeControlo");
myCookie = Request.Cookies["CookieDeControlo"];
if (Request.Cookies["CookieDeControlo"] != null)
{
CookieStatus = Request.Cookies["CookieStatus"].Value;
}
if ...
Go to the complete details ...