Answers for "js delete cookie by name"

5

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
1

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
2

delete cookies by domain javascript

document.cookie = 'my_cookie=; path=/; domain=.example.com; expires=' + new Date(0).toUTCString();
Posted by: Guest on July-01-2020
1

js delete cookie by name

var removing = browser.cookies.remove(
  details               // object
)
Posted by: Guest on October-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language