function cookie($key = null, $default = null) { return $key ? $this->cookie_access->get($key, $default) : $this->cookie_access; }
function regenerateId() { $this->cookie_access->set('session_id', rand()); return $this->cookie_access->get('session_id'); }