Pages

Tuesday, June 25, 2013

Getting Current session value in magento on any custom page

require_once ( "../app/Mage.php" );
umask(0);
//Mage::app("default");
 Mage::app();
 
$session = Mage::getSingleton("customer/session"); 
 
if($session->isLoggedIn()){
   var_dump($session->getData());
}

No comments:

Post a Comment