static public function cookievar($name, $isint = false) 
    {
        if(!empty($_COOKIE[$name]) && is_array($_COOKIE[$name])) {
            return (array)$_COOKIE[$name];
        }
        $response = (isset($_COOKIE[$name]) ? $_COOKIE[$name] : "");

        return ((boolean)$isint ? (int)$response : (string)$response);
    }