public function destroy()
    {
        $_SESSION = [];
        
        if ($this->cookieJar) {
            $this->cookieJar->remove($this->name());
        } else {
            $params = session_get_cookie_params();
            setcookie($this->name(), '', time() - 42000,
                $params["path"], $params["domain"],
                $params["secure"], $params["httponly"]
            );
        }
        
        session_destroy();
    }