MooTools Hash Cookie
Cookies have a limit of 4kb (4096 bytes). Therefore, be careful with your Hash size.
Hash.Cookie: save
var dataName = new Hash.Cookie('cookieName',{autoSave:false});
var Names = [
{unid:'a', first:'Rob', last:'Jones'},
{unid:'b', first:'Tim', last:'Reime'},
{unid:'c', first:'Josh', last:'Smith'}
];
dataName.extend(Names);
dataName.save();
Hash.Cookie: load
var dataName = new Hash.Cookie('cookieName');
dataName.load();
dataName.each(function(el){
console.log(el.unid+'...'+el.first+'...'+el.last);
});
Hash.Cookie: length
var a=JSON.encode(Names);
console.log(a.length); /*a.length>4096*/