- Download or clone the file and place it in to your project JavaScript files folder.
- Import it in to the DOM just before the script where you're going to set or get cookies.
- Use the fucntions:
setCookie(cname, cvalue, expTimeHours); to set cookies on the client.
getCookie(cname); to get them.
-
Notifications
You must be signed in to change notification settings - Fork 0
petersk8/CookieManager.js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple get and set cookies ij javascript
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published