Optional
cookieThe Cookie used to store the session id, or options used to automatically create one.
Creates a new record with the given data and returns the session id.
Deletes data for a given session id from the data store.
Returns data for a given session id, or null
if there isn't any.
Updates data for the given session id.
SessionIdStorageStrategy is designed to allow anyone to easily build their own SessionStorage using
createSessionStorage(strategy)
.This strategy describes a common scenario where the session id is stored in a cookie but the actual session data is stored elsewhere, usually in a database or on disk. A set of create, read, update, and delete operations are provided for managing the session data.