https://github.com/jongha/cookie-js
A cookie, also known as an HTTP cookie, web cookie, or browser cookie, is a small piece of data sent from a website and stored in a user's web browser while the user is browsing that website. This script will help to be available more easily to utilize cookies.
https://github.com/jongha/cookie-js
browser-cookie cookie http-cookies javascript
Last synced: about 1 year ago
JSON representation
A cookie, also known as an HTTP cookie, web cookie, or browser cookie, is a small piece of data sent from a website and stored in a user's web browser while the user is browsing that website. This script will help to be available more easily to utilize cookies.
- Host: GitHub
- URL: https://github.com/jongha/cookie-js
- Owner: jongha
- License: mit
- Created: 2014-04-15T15:23:18.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-18T02:35:40.000Z (about 12 years ago)
- Last Synced: 2025-03-24T07:59:12.341Z (about 1 year ago)
- Topics: browser-cookie, cookie, http-cookies, javascript
- Language: JavaScript
- Homepage:
- Size: 191 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cookie-js
A cookie, also known as an HTTP cookie, web cookie, or browser cookie, is a small piece of data sent from a website and stored in a user's web browser while the user is browsing that website. This script will help to be available more easily to utilize cookies.
## Usage
Insert script block first.
```
```
### Description
Get and set the cookies associated with the current document.
```
cookieAPI.get(key)
```
* key: is A string naming the piece of cookie to set.
```
cookieAPI.set(key, values, expires)
```
* key: is A string naming the piece of cookie to set.
* value: The new cookie value.
* expires: Expire date of cookie.
Clear all cookies.
```
cookieAPI.clear()
```
## License
cookie-js is available under the terms of the MIT License.