Skip to content

FlashCookie.js - JavaScript library to manage persistent cross-browser & cross-domain cookies by utilizing Flash Player plugin

Notifications You must be signed in to change notification settings

faisalman/flash-cookie-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlashCookie.js

JavaScript interface library to manage persistent cross-browser Flash cookies.

Method

  • get(key)
  • set(key, value)
  • remove(key)
  • clear()

Example

<script type="text/javascript" src="flash-cookie.min.js"></script>
<script type="text/javascript">
    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
    });
</script>

License

MIT License

Copyright © 2013 Faisalman <[email protected]>

About

FlashCookie.js - JavaScript library to manage persistent cross-browser & cross-domain cookies by utilizing Flash Player plugin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published