EzSessionServer.SessionStoreInMemorySourceImplementation of session store in the server's memory.
User id. See EzSession.TYPES.SessionArg.user_id.
val create_session :
?foreign:EzSession.TYPES.foreign_info ->
login:string ->
req:EzAPIServerUtils.Req.t ->
user_id ->
user_id EzSession.TYPES.session Lwt.tCreates session from the specified information, generates random token, and associates session to the given token in storage.
val get_session :
?req:EzAPIServerUtils.Req.t ->
string ->
user_id EzSession.TYPES.session option Lwt.tLooks up for the session associated with the given token. If req is also specified, then the returned session synchronizes its time with request.