Creates a new session client
Session store contract implementation
Session key used for storing flash messages
Session ID to use when no explicit session id is defined
Merges session data with existing values
Session data to merge
Merges flash messages with existing flash data
Flash message data to merge
Loads session data from the session store
OptionalsessionId: string
Optional session ID to load (defaults to current session)
Session client exposes the API to set session data as a client. Useful for testing or programmatic session manipulation.
Example