Skip to content

petersk8/CookieManager.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

CookieManager.js

Simple get and set cookies by using pure JavaScript

How to use it:

  1. Download or clone the file and place it in to your project JavaScript files folder.
  2. Import it in to the DOM just before the script where you're going to set or get cookies.
  3. Use the fucntions:
    setCookie(cname, cvalue, expTimeHours); to set cookies on the client.
    getCookie(cname); to get them.

About

Simple get and set cookies ij javascript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published