Saves all in one coockie file as JSON string. Needs native JSON support in browsers or json2.js
Cookies.cookiePlugin = $.cookie // or jQuery.cookie for no conflict or whatever...
Cookies.cookieName = 'myCookie';
Cookies.jquery = $ // or jQuery
Cookies.path = '/path/';
Cookies.set('someColor', '#f00');
Cookies.get('someColor'); // #f00
options = Cookies.load();
options.someColor; // #f00
options.someColor = '#0f0';
Cookies.save(options);
- jQuery
- https://github.com/carhartl/jquery-cookie
- JSON parser