I am using DNN 6.x and I need to track a code from a landing page to registration into a system I built.
Here is the code that I am using in the load of the Module:
Response.Cookies("REGCODE").Value = "GoogleAdMay2012"
Response.Cookies("REGCODE").Expires = DateTime.Now.AddDays(150)
But when I call for that code on another page it is empty.
I can write the value of the cookie to the browser on the same page with the same code below. This, however, does not work when going from one page to another.
Response.Write(Response.Cookies("REGCODE").Value)
Is there a setting that I can change where this will work, or am I doing something wrong? using a cookie should be the easiest thing ever, yet this is not working.