Reputation: 184
I have been working on front end framework call "BackboneJs", I have used the cookie to store data in browser.
But in some case i need to store more data which does not supported by cookie.
Is anyone know the best option for storing considerable large data which cookie does not support.
Please suggest your ideas.
And yes it must be cross browser supported
Upvotes: 0
Views: 1193
Reputation: 1081
You can refer to http://lucb1e.com/rp/cookielesscookies/ , This tracking method works without needing to use:
Upvotes: 1
Reputation: 2844
You can use cross-browser compatible library jStorage for this.
jStorage is a cross-browser key-value store database to store data locally in the browser - jStorage supports all major browsers, both in desktop (yes - even Internet Explorer 6) and in mobile.
Additionally jStorage is library agnostic, it works well with any other JavaScript library on the same webpage, be it jQuery, Prototype, MooTools or something else. Though you still need to have either a third party library (Prototype, MooTools) or JSON2 on the page to support older IE versions.
Upvotes: 0
Reputation: 4477
Use HTML5 local storage.
Reference : http://www.w3schools.com/html/html5_webstorage.asp
Upvotes: 0