我創建一個cookie並將Expires屬性設置爲24小時,但在IE中過期設置爲兩年。在Firefox中,它設置正確。爲什麼?ASP.Net HttpCookie過期設置爲兩年
我的代碼:
//Set a cookie to expire in 24 hours.
HttpCookie clickCookie = new HttpCookie(adId, adId);
clickCookie.Expires = DateTime.Now.AddDays(1);
Response.Cookies.Add(clickCookie);
感謝
計算機日期是否正確? – Tony 2013-03-05 19:01:49