Readonly
dataThe raw data contained in this session.
This is useful mostly for SessionStorage internally to access the raw session data to persist.
Readonly
idA 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).
Sets a value in the session that is only valid until the next get()
.
This can be useful for temporary values, like error messages.
Returns the value for the given name
in this session.
Sets a value in the session for the given name
.
Removes a value from the session.
Session persists data across HTTP requests.
See
https://remix.run/utils/sessions#session-api