Skip to content

Instantly share code, notes, and snippets.

@glebcha
Created August 30, 2013 10:42
Show Gist options
  • Save glebcha/6388590 to your computer and use it in GitHub Desktop.
Save glebcha/6388590 to your computer and use it in GitHub Desktop.
List all cookies for domain in list
function listCookies() {
var theCookies = document.cookie.split(';');
var aString = '';
for (var i = 1 ; i <= theCookies.length; i++) {
aString += i + ' ' + theCookies[i-1] + "\n";
}
return aString;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment