Simple create function used by createBySessionId.
Simple create function used by createBySessionId. For more advanced usage, extend createBySessionId.
the session id to create a Session for
Loads a session by id if available and creates a SessionTransaction wrapper
Loads a session by id if available and creates a SessionTransaction wrapper
the session id to load from
the HttpConnection to work with
a future SessionTransaction[Session] if one is persisted for this manager
Saves a potentially modified Session to this manager
Saves a potentially modified Session to this manager
the transaction to persist from
a potentially modified HttpConnection
Applies a new session id to an HttpConnection.
Applies a new session id to an HttpConnection. Creates a cookie and sets it on the HttpResponse. Also updates the URL if applyToURL is true.
the session id to apply
the HttpConnection to use
modified HttpConnection
Set to true to apply the session id to the URL.
Set to true to apply the session id to the URL. Defaults to false.
Creates a new session by session id
Creates a new session by session id
the session id to create from
the HttpConnection to work with
a future SessionTransaction[Session]
Generates a unique id for use when creating a new session
Generates a unique id for use when creating a new session
Gets a session id if it already exists or creates a new one (and applies it on the HttpConnection) if it doesn't already exist.
Gets a session id if it already exists or creates a new one (and applies it on the HttpConnection) if it doesn't already exist.
the HttpConnection to use
a tuple with the potentially modified HttpConnection and the session id
Manages the entire transaction process of working with a session
Manages the entire transaction process of working with a session
the HttpConnection to work with
the transaction handling function to apply
true if the request can be modified
the final, modified HttpConnection
Retrieves the session id from the request / response cookies if available and from the URL if applyToURL is true.
Retrieves the session id from the request / response cookies if available and from the URL if applyToURL is true.
the HttpConnection to look in
the session id if found
Functional use of a Session via a transaction that is fully managed with the result being updated to the manager
Functional use of a Session via a transaction that is fully managed with the result being updated to the manager
the HttpConnection to work with
the functionality to work with and potentially modify a session instance
Future[Unit] since Connection cannot modify the state of HttpConnection
Functional use of a Session via a transaction that is fully managed with the result being updated to the manager
Functional use of a Session via a transaction that is fully managed with the result being updated to the manager
the HttpConnection to work with
the functionality to work with and potentially modify a session instance
potentially modified HttpConnection
SessionManager must be implemented in order to have support for sessions
the type of session