Created
September 15, 2016 08:19
-
-
Save jarodium/d5f7871410af96b7ce4f58ebe318882d to your computer and use it in GitHub Desktop.
Clear all Cookies with JS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.cookie.split(";").forEach(function(c) { document.cookie = c.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/"); }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment