0

document.cookie won't become empty whatever I do, like it does when I clean it using the browser. How would I delete all cookies in JavaScript?

What I tried:

  • document.cookie = ""; but cookies behave differently.
  • 20~ of results in a search.
3
  • You can handle only cookies set by the current domain the JS is running. Commented Dec 22, 2020 at 13:24
  • have a look here Commented Dec 22, 2020 at 13:25
  • I said I searched A LOT, it doesn't work at all. Commented Dec 23, 2020 at 7:34

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.