Skip to content

Instantly share code, notes, and snippets.

@kas-cor
Last active December 19, 2017 12:19
Show Gist options
  • Save kas-cor/555b4f8b45a0d2531adcb79e48b6e8df to your computer and use it in GitHub Desktop.
Save kas-cor/555b4f8b45a0d2531adcb79e48b6e8df to your computer and use it in GitHub Desktop.
JavaScript cookie
@kas-cor
Copy link
Author

kas-cor commented Mar 9, 2017

Useing

Seting

jsMod.cookie.set('hello', 'world', 60 * 60 * 24); // Expires 24 hours

Geting

var hello = jsMod.cookie.set('hello');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment