I want to create a static class that will deal with the cookies in my ASP.NET site. The class is written in c# and sits in App_code folder.
The issue I have is that all the time, the updates in the cookie delete my previous value in the cookie, and not been added. I created a simple code.
At first the cookie has the value 1=a , and this is good (correct). But in the second run, when I enter the if and not the else, the cookie value is 2=b.
the result that I want is 1=a&2=b
Thank you