H
Henri
Hi,
My page saves user's login on user's computer using a cookie:
Dim expires As Date = DateTime.Now.AddMonths(1)
Dim cookie As New HttpCookie("login", loginValue)
cookie.Expires = expires
Response.Cookies.Add(cookie)
On the same page, user can click on a button to remove this cookie by
clicking on a button, which calls a client-side JavaScript function:
document.cookie = "login=; expires=Thu, 01-Jan-70 00:00:01 GMT";
This doesn't work. Why?
Thanks
My page saves user's login on user's computer using a cookie:
Dim expires As Date = DateTime.Now.AddMonths(1)
Dim cookie As New HttpCookie("login", loginValue)
cookie.Expires = expires
Response.Cookies.Add(cookie)
On the same page, user can click on a button to remove this cookie by
clicking on a button, which calls a client-side JavaScript function:
document.cookie = "login=; expires=Thu, 01-Jan-70 00:00:01 GMT";
This doesn't work. Why?
Thanks