def METHOD_NAME(self, admin_id):
    """Set the admin ID that will be stored in the cookie.
    admin_id (int): the ID of the admin (to unset don't pass None:
        use clear()).
    """
    self._cookie["id"] = admin_id
    self._cookie["ip"] = self._request.remote_addr
    self.refresh()