Hi guys,
I am here to discuss about super cookies. superCookies terms came from flash cookie but I wanted to use this name. So what is so special about this superCookie. Have a look.
- It can store large number of data.
- It uses localStorage (Thanks to HTML5). Flash local shared objects (LSOs) is a fallback if HTML5 is not supported; So this will work without HTML5.
- It can store data types (ie. array, object, number etc) if extended. (extended is a setup parameter - this will use flash internally)
- The most important. Cross domain cookies. You heard it right buddy... :) It can be used for cross domain cookies access. And Its secure. More or less. ;)
- Its just 3kb script.
- Its free... :)
Let's find out how we can use it?
Setup for superCookie
Put this script in header.
<script src="js/swfobject/swfobject.js" type="text/javascript"></script>
<script>
//var superCookieSetup = {swfURL:"swf/supercookie.swf", expressInstaller:"js/swfobject/expressInstall.swf"};
</script>
<script src="js/superCookie-min.js" type="text/javascript"></script>
<script>
if(superCookie.isReady) {
superCookie.setItem("library", "Super Cookie");
} else {
superCookie.onReady(function() {
superCookie.setItem("library", "Super Cookie");
})
}
</script>
Demo and Documentation
You want it? Download!
Download from GitHub.com
https://github.com/marghoobsuleman/superCookiePlease post your bugs at above location.