public function delete($key){
        $domain = ltrim($_SERVER['SERVER_NAME'], "www.");
        unset($_COOKIE[$key]);
        setcookie($key, "", -1, '/', $domain, $this->secured, $this->httpOnly);
    }