docs: def logout_listener(app, user):
      """Connect to the user_logged_out signal.
  
      :param app: The Flask application.
      :param user: The :class:`invenio_accounts.models.User` instance.
      """
      @after_this_request
      def _commit(response=None):
          if hasattr(session, 'sid_s'):
              delete_session(session.sid_s)
          # Regenerate the session to avoid session fixation vulnerabilities.
          session.regenerate()
          current_accounts.datastore.commit()
          return response