J
John Grandy
I'm not finding cookies I create to persist. I don't see any corresponding
file in
C:\Documents and Settings\jgrandy\Local Settings\Temporary Internet Files
and the cookie is not present in the Request.Cookies collection on postback.
Here is how I am creating the cookie :
HttpCookie cookie = new HttpCookie("MyCookie");
cookie.Expires = DateTime.Now.AddYears(1);
cookie.Value = "written " + DateTime.Now.ToString();
cookie.Path = "folder1/folder2";
Response.Cookies.Add(cookie);
file in
C:\Documents and Settings\jgrandy\Local Settings\Temporary Internet Files
and the cookie is not present in the Request.Cookies collection on postback.
Here is how I am creating the cookie :
HttpCookie cookie = new HttpCookie("MyCookie");
cookie.Expires = DateTime.Now.AddYears(1);
cookie.Value = "written " + DateTime.Now.ToString();
cookie.Path = "folder1/folder2";
Response.Cookies.Add(cookie);