code: async def save(self, request, response):
          
          if isinstance(response, Response) and SESSION_KEY in request and not response.prepared:
              session = request[SESSION_KEY]
              if session.save(response.set_cookie):
                  self.app.logger.debug('Session saved: %s', session)
docs: Save session to response cookies.