code: def logout(self):
          
          sess = cherrypy.session
          username = sess.get(SESSION_KEY, None)
          sess[SESSION_KEY] = None
          if username:
              cherrypy.request.login = None
  
          cherrypy.log.error(
              msg="user '%(user)s' logout" % {'user': username},
              severity=logging.INFO
          )
          raise cherrypy.HTTPRedirect("/signin")
docs: logout page