I create a cookie and set the Expires property to 24 hours, but in IE the expiration is set to two years. In Firefox it is set correctly. Why?
My code:
//Set a cookie to expire in 24 hours.
HttpCookie clickCookie = new HttpCookie(adId, adId);
clickCookie.Expires = DateTime.Now.AddDays(1);
Response.Cookies.Add(clickCookie);
Thanks