Optional
options: SessionOptionsPrivate
_dataPrivate
dirtyTrack fields that have been updated via calls to set
or pop
Private
expiresWhen the session expires in terms of seconds since epoch (Unix)
Readonly
idThe cookie name used to store the session id in the browser
Private
Readonly
maxMax age of the session, in seconds. The default is 24 hours.
Readonly
storeThe SessionStore object used to store session data
Do not allow external direct manipulation of SessionData;
must use set
function so we can track changed values for saving
Get a single value from the session data in memory.
The property to retrieve from the session data.
The value corresponding to the given key.
Attempts to lock the session row. Also updates the data with the current data from the database. If it was not successful, then the rows must already be locked. If the function fails for some other reason, an exception will be thrown.
whether the attempt to lock the session row was successful
Set or update one or more values in memory only. If you need to persist changes immediately, call the save function.
an object of items to add or update
`await this.set(key, prop).save()`
The data stored in the SessionStore that is retrieved with a session id