I try to delete cookie set by http header but doesn't work. What's the different between http-set cookie and javascript-set cookie ?
Yes, javascript can delete a cookie set by HTTP headers unless it is specifically a HTTPOnly cookie.
The cookie must also be from the same domain as the javascript.
See also http://www.quirksmode.org/js/cookies.html and Clearing all cookies with JavaScript
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With