Dec 01, 2010, 9:08 AM
How to Set Cookies?
Hi,
I wan't to set a cookie with this code in codebehind
Thank you
I wan't to set a cookie with this code in codebehind
Cookies.Set("UID", "testcookie", DateTime.Now.AddDays(30), "", "EPG", false);
And then use var testcookie = Cookies.GetCookie("UID");
to get the cookie.But in the testcookie i get:Expires = {0001-1-1 0:00:00}
Value = ""
Why lost the value "testcookie"?Thank you
Last edited by geoffrey.mcgill; Dec 01, 2010 at 4:26 PM.