AdminSessionInfo\Collection
Magento\Security\Model\ResourceModel\AdminSessionInfo\Collection
What it does
This collection class manages groups of admin session records in Magento 2's security system.
Developers use it to query, filter, and bulk-update admin user sessions - such as when terminating all active sessions for a user except the current one, cleaning up expired sessions, or removing old session data.
It's primarily used in admin session management and security features like concurrent login prevention.
Public Methods
- updateActiveSessionsStatus()
- filterByUser()
- filterExpiredSessions()
- deleteSessionsOlderThen()