Creates a new SessionCollection instance
Resolved session configuration
Returns the session data for the given session ID, or null if the session does not exist
Session identifier
Get all sessions for a given user ID (tag). Only supported by Memory, Redis and Database stores.
User identifier to get sessions for
SessionCollection provides APIs for programmatic session management. It allows reading, destroying, and tagging sessions without an HTTP context.
Example