/* DynAPI Distribution Cookie functions The DynAPI Distribution is distributed under the terms of the GNU LGPL license. */ /* This is not tested, should work like this: var c = new Cookie('mycookieset'); c.add('array',[1,2,3]); // re-saves cookie each time a value is added var c = new Cookie('mycookieset'); // auto-retrieves saved cookie object var name = c.get('name'); var array = c.get('array'); array[array.length] = 4; c.add('name',name+' MyLastName'); c.add('array',array); */ function Cookie(name,pDType) { this.DynObject = DynObject; this.DynObject(); this.data = {}; this.name = name; this.exists = false; this._pdt=pDType; var c = dynapi.functions.getCookie(this.name); if (c) { this.exists = true; var a = c.split(','); var x,n,v; for (var i=0;i