Log in
Model

RedirectDataValidator

Magento\Store\Model\StoreSwitcher\RedirectDataValidator

What it does

This class validates redirect data when customers switch between different store views in Magento 2.

It ensures the redirect request is secure by verifying a cryptographic signature and checking that the request was made within a 5-second timeout window.

Developers use this during store switching operations to prevent tampering with redirect parameters and protect against replay attacks.

Public Methods

  • validate()