Magento Session


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



Copy this code and paste it in your HTML
  1. $session = Mage::getSingleton("core/session", array("name"=>"frontend"));
  2. // Set data
  3. $session->setData("varibleName", 4);
  4. // Get data
  5. $variableName = $session->getData("varibleName");
  6. // Return 4

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.