At some point, my cookie storage broke. This function sets a value to “1”. After calling it, I can see that Application.Cookies has saved the value.
public static void SaveNeverShowAnonIssueRepored(string value)
{
Application.Cookies.Add(“nsa_showanonissuereported”, value, DateAndTime.Now.AddMonths(6));
}
However, when I check the value later, it has been set to “0”, even in the same session.
public static string GetNeverShowAnonIssueReported()
{
string strResult = Application.Cookies[“nsa_showanonissuereported”];
if (strResult is null)
strResult = “”;
return strResult;
}
Why would this be?
Hi Andrew,
Perhaps somewhere in your code there’s something that sets the value “0” to the cookie?
I couldn’t reproduce the issue, perhaps you can send us a reproducible test case?
Thanks,
Alaa
Hi Andrew,
Thank you for reporting this issue.
We will investigate it and get back to you as soon as possible
Thanks,
Alaa
Please login first to submit.