public function getCookie($varname, $default = false)
    {
        if(isset($this->cookievars[$varname])) {
            return $this->cookievars[$varname]['value'];
        } else {
            return $default;
        }
    }