0

I use this code to delete a cookie:

function deleteCookie(name) {
  document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 UTC;';
}

cookieName = "gdeslon.kokoc.com.__arc_aid";
deleteCookie(cookieName);

But this code does not delete a cookie:

cookie I want to delete "gdeslon.kokoc.com.__arc_aid"

What could be the reason for the code not working?

Moritz Ringler
  • 9,772
  • 9
  • 21
  • 34
eelisn
  • 1

0 Answers0