If I can use session to store a variable like this
$session = Mage::getSingleton('core/session')->setData('Message');
then what is the use of
$session = Mage::getSingleton('core/session', array('name'=>'frontend'));
what does this code actually do.
Best Answer
In a default out of the box Magento installation you have two options for the session.
When the
Mage_Core_Controller_Varien_Action
runs it's preDispatch function it will start the session for the appropriate section.The construct of the session will take in the name of the section you are in, frontend or adminhtml, and will limit the data that you can access.