Log in
Helper

Session

Magento\Persistent\Helper\Session

What it does

This helper class manages the persistent shopping cart session in Magento 2, allowing customers to maintain their shopping cart and preferences across multiple visits.

Developers use this class to check if persistent mode is active, retrieve the current persistent session, and manage the 'Remember Me' checkbox state during customer login and checkout processes.

Public Methods

  • getSession()
  • setSession()
  • isPersistent()
  • isRememberMeChecked()
  • setRememberMeChecked()