|
I saved cookies in the landing page
Response.Cookies ["TrueName"]. Value = sdr ["TrueName"]. ToString ();
Response.Cookies ["TrueName"]. Expires = DateTime.Now.AddMinutes (30);
Expires in 30 minutes
In the Page_Load event of the exit page
Response.Cookies.Clear ();
In this way, I can still read the cookie value on other pages, what's going on?
Later I wrote it like this
Response.Cookies ["TrueName"]. Value = "";
Response.Cookies.Clear ();
The result is still the same. The value of Cookies can still be read on other pages. Why can't it be cleared? |
|