Posted on 2012-04-12
we create a cookie in c# to later be access on asp. It was working but now seems ASP doesnt read it. We check on the browser and the cookie is created. Please any ideas. Thanks in advances.
System.Web.HttpCookie UserNameCookie = new System.Web.HttpCookie("UserName");
UserNameCookie.Value = objUser.Username;
UserNameCookie.Expires = DateTime.Now.AddDays(5);
ASP - read
strUsername = Request.Cookies("UserName")