2012-03-16 149 views
0

基本上我想要做的是將我的Magento前端會話共享到在CakePHP中部署的應用程序。 的結構是:與CakePHP共享Magento會話

的public_html/ /appmagento /appcakephp

任何NOW的或有嘗試這種體驗。

問候, 盧西亞諾

回答

1

主要是很容易的,只要記住,Cookie路徑將需要是根域的會話訪問。

require_once 'app/Mage.php'; 
umask(0); 

Mage::app(); 
Mage::getSingleton('core/session', array('name' => 'frontend')); 
$session = Mage::getSingleton('customer/session');