Magento – Set and Get Session Variable
Magento – Set and Get Session Variable
You can set magento session variable as follow :
Magento Set Session
Mage::getSingleton('core/session')->setYourVariableName('data'); |
You can get magento session data as follow:
Magento get Session
Mage::getSingleton('core/session')->getYourVariableName(); |
You can unset magento session variable as :
Magento Unset Session
Mage::getSingleton('core/session')->unsYourVariableName(); |
Advertisements