code: async def save_session(  # type: ignore
              self, app: 'Quart', session: SecureCookieSession, response: Response,
      ) -> None:
          
          domain = self.get_cookie_domain(app)
          path = self.get_cookie_path(app)
          if not session:
              if session.modified:
                  response.delete_cookie(app.session_cookie_name, domain=domain, path=path)
              return
  
          if session.accessed:
              response.vary.add('Cookie')
  
          if not self.should_set_cookie(app, session):
              return
  
          data = self.get_signing_serializer(app).dumps(dict(session))
          response.set_cookie(
              app.session_cookie_name,
              data,
              expires=self.get_expiration_time(app, session),
              httponly=self.get_cookie_httponly(app),
              domain=domain,
              path=path,
              secure=self.get_cookie_secure(app),
          )
docs: Saves the session to the response in a secure cookie.