createSession
Summary
Create a new session.
Signature
function createSession<valueData extends Data, flashData extends Data>(
id: string,
initialData: SessionData<valueData, flashData>,
): Session<valueData, flashData>;
Params
id
The ID of the session
initialData
The initial data for the session
Returns
The new session