Log in
Model

SessionCleaner

Magento\Customer\Model\Session\SessionCleaner

What it does

This class is responsible for clearing all session data associated with a specific customer, effectively logging them out from all devices and sessions.

Developers use this when they need to forcefully invalidate all active sessions for a customer, such as after a password change, account suspension, or security-related events.

It updates the customer's session cutoff timestamp and visitor records to ensure old sessions become invalid.

Public Methods

  • clearFor()