S
Sean M
Guest
I am learning how to make cookies. I put my application up on my website to test it. http://www.seansbagoftricks.com/PracticeApps/CreateCookie/CreateCookie.aspx
The ROOT of this entire question is why did my cookies, which were words, turn into "" because of these lines:
if (!(Request.Cookies["sessionCookie"] == null))
txtSessionCookie.Text = Response.Cookies["sessionCookie"].Value;
if (!(Request.Cookies["persistentCookie"] == null))
txtSessionCookie.Text = Response.Cookies["persistentCookie"].Value;
???
The cookie is on the right of the equal sign. I took these lines of code out of the page_load event in the page that was causing the problem and that fixed it.
Why would this happen?
The ROOT of this entire question is why did my cookies, which were words, turn into "" because of these lines:
if (!(Request.Cookies["sessionCookie"] == null))
txtSessionCookie.Text = Response.Cookies["sessionCookie"].Value;
if (!(Request.Cookies["persistentCookie"] == null))
txtSessionCookie.Text = Response.Cookies["persistentCookie"].Value;
???
The cookie is on the right of the equal sign. I took these lines of code out of the page_load event in the page that was causing the problem and that fixed it.
Why would this happen?