How to Save Cookies

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

Hello,

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?

Thanks

  • You must to post comments
0
0

Hi Tung,

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.

Best,

Luca

  • You must to post comments
0
0

Hello Thomas,

I run your example at my side. The cookies is not preserved.

I use Windows10. VS2013 + IIS Express, debug with Internet Explorer.

However, with Chrome the cookies is preserved as expected.

  • You must to post comments
0
0

Hi Tung,

I just checked and for me it is working fine. See attached sample Рthe cookie value is preserved when the app is stopped and restarted.

Best wishes
Thomas

  • You must to post comments
Showing 3 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json