Model
AdminSessionInfo
Magento\Security\Model\AdminSessionInfo
What it does
This class manages admin user session information in Magento 2, tracking login status, session expiration, and termination reasons.
Developers use it to check if an admin session is active, determine if it has expired based on configured lifetime, and manage concurrent session scenarios where other sessions may be terminated when a user logs in from a different location.
Public Methods
- isLoggedInStatus()
- isSessionExpired()
- getFormattedIp()
- isOtherSessionsTerminated()
- setIsOtherSessionsTerminated()