def logout(self): if self.current_user_id: session_rm(self.current_user_id) self.clear_cookie('S')
def logout(self): s = web.cookies().get('S') session_rm(s) web.setcookie('S', '', expires=-1)