diff options
| author | sostler <sbostler@gmail.com> | 2010-04-25 11:01:39 -0400 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-04-25 11:01:39 -0400 |
| commit | b9529fed21e0d4594dcb7aaa165247514ffbd4eb (patch) | |
| tree | f50c6d858c66c45e93af56476134442513e8b982 /static/js | |
| parent | 8c7c35c1beceee5b9369990274d101a18dbb7687 (diff) | |
Added js file to delete cookies
Diffstat (limited to 'static/js')
| -rw-r--r-- | static/js/cookie.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/static/js/cookie.js b/static/js/cookie.js new file mode 100644 index 0000000..a452dcf --- /dev/null +++ b/static/js/cookie.js @@ -0,0 +1,7 @@ +function deleteCookie(name) { + // Only deletes non-wildcard cookies + document.cookie = name + "=;expires=Thu, 01-Jan-1970 00:00:01 GMT"; +} + +deleteCookie('compojure-session'); +deleteCookie('login-token');
\ No newline at end of file |
