Questions tagged [core-session]

Denotes questions regarding Magento Core Session

Filter by
Sorted by
Tagged with
33
votes
3answers
45k views

How to Set, Retrieve and Unset Session Variables in Magento 2?

What is the equivalent for session in Magento 1 Mage::getSingleton('core/session')->setMyValue('test'); Mage::getSingleton('core/session')->unsMyValue(); Same in Magento 2?