Interface
StoreCookieManagerInterface
Magento\Store\Api\StoreCookieManagerInterface
What it does
This interface defines the contract for managing store-specific cookies in Magento 2.
Developers use it to retrieve the current store code from cookies, set a store cookie when a customer switches stores, or delete the store cookie when needed.
It's particularly useful in multi-store setups where store selection needs to be persisted across user sessions.
Public Methods
- getStoreCodeFromCookie()
- setStoreCookie()
- deleteStoreCookie()