Model

IsLoginAsCustomerSessionActive

Magento\LoginAsCustomer\Model\ResourceModel\IsLoginAsCustomerSessionActive

What it does

This class checks if an active 'Login as Customer' session exists for a specific customer and admin user combination.

Developers use this to verify whether an admin is currently logged in as a particular customer, which is useful for security checks and session validation in the Login as Customer feature.

Public Methods

  • execute()