Tag : session

Magento session

To set a value in magento session use:

Mage::getSingleton('core/session')->setMySessionData('My session data');

To get variable value from magento session use:

$mySessionData = Mage::getSingleton('core/session')->getMySessionData();