Set and Get Session variables in magento
Warning: Undefined array key "ssba_bar_buttons" in /home/renthpvk/www.websourceblog.com/wp-content/plugins/simple-share-buttons-adder/php/class-buttons.php on line 602
Warning: Undefined array key "ssba_bar_buttons" in /home/renthpvk/www.websourceblog.com/wp-content/plugins/simple-share-buttons-adder/php/class-buttons.php on line 602
Warning: Undefined array key "ssba_bar_buttons" in /home/renthpvk/www.websourceblog.com/wp-content/plugins/simple-share-buttons-adder/php/class-buttons.php on line 602
Warning: Undefined array key "ssba_bar_buttons" in /home/renthpvk/www.websourceblog.com/wp-content/plugins/simple-share-buttons-adder/php/class-buttons.php on line 602
Warning: Undefined array key "ssba_bar_buttons" in /home/renthpvk/www.websourceblog.com/wp-content/plugins/simple-share-buttons-adder/php/class-buttons.php on line 602
Warning: Undefined variable $randomaftermode in /home/renthpvk/www.websourceblog.com/wp-content/plugins/ad-injection/ad-injection.php on line 1117
Magento has functionality to create new session variables. You can set it as following
/* Core Session */ Mage::getSingleton('core/session')->setYourVariable('data'); $Data = Mage::getSingleton('core/session')->getYourVariable(); /* Customer Session */ Mage::getSingleton('customer/session')->setYourVariable('data'); $Data = Mage::getSingleton('customer/session')->getYourVariable(); /* Admin Session */ Mage::getSingleton('admin/session')->setYourVariable('data'); $Data = Mage::getSingleton('admin/session')->getYourVariable();
I really needed to find this info, thank God!
I need a session that preserve after checkout or logout the customer