I use Wisej.Web.Application.Cookies.Add(key,value) to save user settings. However, in the next run, the Cookies collection does not contain the user settings.
We do not change the default settings of cookieless in default.json
Is there something I forgot to make it works?
To make it working in FF and Edge, I have to add to Thomas example an expire date, otherwise the cookie was only valid for the current session.
Wisej.Web.Application.Cookies.Add(“test”, textBox1.Text, new DateTime(2020,1,1));
I tried the sample that Thomas posted on Windows 10 with Chrome, IE 11 and IE Edge and the cookie is always retrieved correctly. You may have protected mode enabled in IE, or some other security setting that prevents the cookies from being saved.
Please login first to submit.