Log in
Helper

Data

Magento\Persistent\Helper\Data

What it does

This helper class manages the Persistent Shopping Cart feature configuration in Magento 2.

Developers use it to check if persistent cart functionality is enabled, retrieve settings like session lifetime and 'Remember Me' options, and determine whether shopping cart data should persist across sessions.

It's commonly used in checkout, cart, and customer login workflows to implement persistent shopping behavior.

Public Methods

  • isEnabled()
  • isRememberMeEnabled()
  • isRememberMeCheckedDefault()
  • isShoppingCartPersist()
  • getLifeTime()
  • getClearOnLogout()
  • getUnsetCookieUrl()
  • getPersistentConfigFilePath()
  • canProcess()