code: public static void save() {
          H.Response resp = H.Response.current();
  
          H.Session session = H.Session.current();
          serialize(session);
  
          H.Flash flash = H.Flash.current();
          serialize(flash);
      }
docs: Persist session and flash to cookie, write all cookies to http response