Set, Retrieve and Unset Session in Magento
Set:
$mySession = ‘Hello Bangladesh’;
Mage::getSingleton(‘core/session’)->setmySession($mySession);
To Retrieve:
$mySession = ”;
$mySession = Mage::getSingleton(‘core/session’)->getmySession();
To Unset:
Mage::getSingleton(‘core/session’)->unsmySession();