code: def _set_session_cookie(self):
          
          LOGGER.debug('Setting session cookie for %s', self.session.id)
          self.set_secure_cookie(name=self._session_cookie_name,
                                 value=self.session.id,
                                 expires=self._cookie_expiration)
docs: Set the session data cookie.