code: function(name, value) {
  		var d, o, c, i, retval, t;
  
  		name = 'elfinder-'+name+this.id;
  
  		if (value === void(0)) {
  			if (document.cookie && document.cookie != '') {
  				c = document.cookie.split(';');
  				name += '=';
  				for (i=0; i<c.length; i++) {
  					c[i] = $.trim(c[i]);
  					if (c[i].substring(0, name.length) == name) {
  						retval = decodeURIComponent(c[i].substring(name.length));
  						if (retval.substr(0,1) === '{' || retval.substr(0,1) === '[') {
  							try {
  								return JSON.parse(retval);
  							} catch(e) {}
  						}
  						return retval;
  					}
  				}
  			}
  			return null;
  		}
  
  		o = Object.assign({}, this.options.cookie);
  		if (value === null) {
  			value = '';
  			o.expires = -1;
  		} else {
  			t = typeof value;
  			if (t !== 'string' && t !== 'number') {
  				value = JSON.stringify(value);
  			}
  		}
  		if (typeof(o.expires) == 'number') {
  			d = new Date();
  			d.setTime(d.getTime()+(o.expires * 86400000));
  			o.expires = d;
  		}
  		document.cookie = name+'='+encodeURIComponent(value)+'; expires='+o.expires.toUTCString()+(o.path ? '; path='+o.path : '')+(o.domain ? '; domain='+o.domain : '')+(o.secure ? '; secure' : '');
  		if (value && (value.substr(0,1) === '{' || value.substr(0,1) === '[')) {
  			try {
  				return JSON.parse(value);
  			} catch(e) {}
  		}
  		return value;
  	}
docs: Get/set cookie
  
  @param  String       cookie name
  @param  String|void  cookie value
  @return String|null