Skip to content

Instantly share code, notes, and snippets.

@teburd
Created April 6, 2011 15:49
Show Gist options
  • Save teburd/905899 to your computer and use it in GitHub Desktop.
Save teburd/905899 to your computer and use it in GitHub Desktop.
cookiemonster
<!DOCTYPE html>
<html>
<head>
<script type="application/javascript">
function cookieMonster() {
var prefix = "whatever_man_biiiiiiiiiiiig_cookie_me_want_";
for(i = 0; i < 100; i++)
{
var date = new Date();
document.cookie = document.cookie + prefix + i + "=" + date + ";";
}
document.cookie = document.cookie + " path=/"
console.log("cookie is " + document.cookie);
}
</script>
</head>
<body onload="cookieMonster()">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment