<script src="path/to/cookie.js"></script>
Now you can use any of the 3 functions below
sets a cookie which expires after 'expires' days
retrieves value of a cookie; returns an empty string if the key is not set
returns true if the key exists; otherwise false
deletes a cookie and returns true if the cookie existed; otherwise false
moritzschramm/cookie.js
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple js script that makes creating cookies easy