Function session

  • Type Parameters

    • Data = SessionData
    • FlashData = Data

    Parameters

    • options: {
          autoCommit?: boolean;
          createSessionStorage(
              c: Context<any, any, {}>,
          ): SessionStorage<Data, FlashData>;
      }

    Returns MiddlewareHandler<Env, string, {}>