public function removeAutoLoginTokenAndCookie(int $id)
    {
        $authtok = new AuthToken($this->db);
        $authtok->setId($id);
        $authtok->deleteUserToken();

        setcookie($this->cookie_name, '', 1, '/');
    }