An open API service indexing awesome lists of open source software.

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

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 <>