Magento read/write session


/ Published in: PHP
Save to your folder(s)

easy but I tend to forget


Copy this code and paste it in your HTML
  1. Mage::getSingleton('core/session')->setBlahBlahBlah('my data');
  2.  
  3. $myData = Mage::getSingleton('core/session')->getBlahBlahBlah();
  4. // Look at: Mage_Core_Model_Session_Abstract

URL: http://www.magentocommerce.com/boards/viewthread/11729/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.