Create a new empty session.
Create a new empty session. The key is a hint to the key of the session and implementations can ignore if needed. Because of that, you should check the key from the session after it is created as the key may differ.
Create a new empty session.
Create a new empty session. The newly created session will be assigned an id by the underlying implementation.
Mark the given session as expired and remove it from the underlying implementation.
Mark the given session as expired and remove it from the underlying implementation. If the session does not exist or has already expired, then this is a no-op.
Returns a Session for the given key.
Returns a Session for the given key. If no session exists, then the result is a None.
Persists the given session.
Returns a session for the given key or creates a new session if none is available.
Returns a session for the given key or creates a new session if none is available. Implementations are free to ignore the given key when creating an new session and can assign a different key. This is useful for distributed implementations.