createSession
Creates a new session with the specified parameters.
Return
The newly created Session instance.
Parameters
key
The composite identifier of the session. If SessionKey.id is null, the service generates a unique session id and the returned Session will reflect it.
state
An optional map representing the initial state of the session.