Questions tagged [core-session]

Denotes questions regarding Magento Core Session

Filter by
Sorted by
Tagged with
36
votes
3answers
47k 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?
1
vote
2answers
118 views

Magento 2 core session variable unable to fetch first time when user comes from 3rd party website

We have to fetch and set a session variable when the user redirects to our magento2 website using session-id from 3rd party site. It looks like http://magento2.com/?SID=322e00bfqm3g6rfpjumah3939n ...