createMemorySessionStorage
createMemorySessionStorage
Framework Data
Summary
Creates and returns a simple in-memory SessionStorage object.
Intended for local development and testing. It does not scale beyond a single process, and all session data is lost when the server process stops/restarts.
Signature
function createMemorySessionStorage<Data = SessionData, FlashData = Data>({
cookie,
}: MemorySessionStorageOptions = {}): SessionStorage<Data, FlashData>Params
options
Options for creating the in-memory session storage.
Returns
A SessionStorage object that stores session data in memory.