Answers for "js cookie uninstall js-cookie"

7

javascript delete cookie

function deleteCookie(name) {
  document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
}
Posted by: Guest on May-20-2020
2

how to delete a cookie in js

//set the vvalue to EMPTY, and the date to an already PASSED one.
document.cookie = "cookiename= ; expires = Thu, 01 Jan 1970 00:00:00 GMT"
Posted by: Guest on February-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language