SessionCleanerInterface
Magento\Customer\Api\SessionCleanerInterface
What it does
This interface defines a contract for clearing customer session data in Magento 2.
Developers would use implementations of this interface when they need to forcefully log out a customer from all active sessions, such as after a password change, account suspension, or security-related events.
The clearFor method destroys all sessions associated with a specific customer ID, including their current session.
Public Methods
- clearFor()