https://github.com/faisalman/flash-cookie-js
FlashCookie.js - JavaScript library to manage persistent cross-browser & cross-domain cookies by utilizing Flash Player plugin
https://github.com/faisalman/flash-cookie-js
cross-browser-cookie flash-cookie javascript-library
Last synced: 5 months ago
JSON representation
FlashCookie.js - JavaScript library to manage persistent cross-browser & cross-domain cookies by utilizing Flash Player plugin
- Host: GitHub
- URL: https://github.com/faisalman/flash-cookie-js
- Owner: faisalman
- Created: 2013-04-09T03:30:26.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-11T10:23:37.000Z (about 13 years ago)
- Last Synced: 2025-01-24T16:44:51.551Z (over 1 year ago)
- Topics: cross-browser-cookie, flash-cookie, javascript-library
- Language: ActionScript
- Homepage:
- Size: 107 KB
- Stars: 16
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# FlashCookie.js
JavaScript interface library to manage persistent cross-browser Flash cookies.
## Method
* get(key)
* set(key, value)
* remove(key)
* clear()
## Example
```html
FlashCookie.onReady(function (cookie) {
cookie.set("key1", "value1");
cookie.set("key2", "value2");
console.log(cookie.get("key1")); // "value1"
cookie.remove("key1");
console.log(cookie.get("key1")); // undefined
console.log(cookie.get("key2")); // "value2"
cookie.clear();
console.log(cookie.get("key2")); // undefined
});
```
## License
MIT License
Copyright © 2013 Faisalman <>