Magento Set Session value and Get Session value

piaoling  2011-07-14 19:05:32

Magento Set Session value and Get Session value

 

Set a Session value into a session Id in magento is little bit different. If you want to follow the Magento process than you must have to write the code given below to set a value and get a value of a particular Session Id.

To set Session write <?php Mage::getSingleton('core/session')->setData('session_Id'); ?>


To get that session value write

<?php Mage::getSingleton('core/session')->getData('session_Id'); ?>

 

from:https://aniscartujo.com/webproxy/default.aspx?prx=http://xhtmlandcsshelp.blogspot.com/search/label/Magento?updated-max=2010-10-25T12:17:00+05:30&max-results=20

类别 :  magento(258)  |  浏览(3367)  |  评论(0)
发表评论(评论将通过邮件发给作者):

Email: