Creates a new session repository instance.
The validator instance
The database config instance
The logger instance
The database connector instance
Authorizes a session.
This method:
authorized_at timestamp.session_expire.The ID of the campaign containing the session
The session ID to authorize
The updated session model
DatabaseError If the campaign does not exist
DatabaseError If the session does not exist
DatabaseError If no enabled proxies are available
Creates a new session in the specified campaign.
The session is automatically assigned to a random enabled proxy. A unique session ID and secret are generated automatically.
The ID of the campaign to create the session in
The newly created session model
DatabaseError If the campaign does not exist
DatabaseError If no enabled proxies are available
Reads a session by its ID.
The ID of the campaign containing the session
The session ID to read
The session model, or null if not found
Upgrades a session.
This method:
session_count of the associated lure.The ID of the campaign containing the session
The Lure ID through which the session is updated
The session ID to upgrade
The session secret
DatabaseError If the campaign does not exist
DatabaseError If the lure does not exist
DatabaseError If the session does not exist
DatabaseError If the secret does not match
StaticregisterRegister session repository instance as singleton in DI container.
DI container to register in
Redis session repository implementation.