Skip to main content
added 8 characters in body
Source Link
André Ferraz
  • 3.5k
  • 6
  • 22
  • 41

Its just a class which stores data to the current user session. You can set, get and clear data from the session.

Have a look at the \Magento\Framework\App\Request\DataPersistor class SessionManagerInterface is used in every method.

You could use this to store temporary data to be used across the framework which don't need to be stored otherwise in the database.

What are sessions?

Its just a class which stores data to the current user session. You can set, get and clear data from the session.

Have a look at the \Magento\Framework\App\Request\DataPersistor class SessionManagerInterface in every method.

You could use this to store temporary data to be used across the framework which don't need to be stored otherwise in the database.

What are sessions?

Its just a class which stores data to the current user session. You can set, get and clear data from the session.

Have a look at the \Magento\Framework\App\Request\DataPersistor class SessionManagerInterface is used in every method.

You could use this to store temporary data to be used across the framework which don't need to be stored otherwise in the database.

What are sessions?

Source Link
André Ferraz
  • 3.5k
  • 6
  • 22
  • 41

Its just a class which stores data to the current user session. You can set, get and clear data from the session.

Have a look at the \Magento\Framework\App\Request\DataPersistor class SessionManagerInterface in every method.

You could use this to store temporary data to be used across the framework which don't need to be stored otherwise in the database.

What are sessions?