Session persists data across HTTP requests.
Type: Partial<Data & { [Key in string | number | symbol]: FlashData[Key] }>
The raw data contained in this session.
This is useful mostly for SessionStorage internally to access the raw session data to persist.
Type: string
A unique identifier for this session.
Note: This will be the empty string for newly created sessions and sessions that are not backed by a database (i.e. cookie-based sessions).
Type: flash<Key>(name, value): void
Type: get<Key>(name): undefined | Key ? keyof Data : undefined | Key ? keyof FlashData : undefined
Type: has(name): boolean
Type: set<Key>(name, value): void
Type: unset(name): void