Magento Session from external page (same domain)
问题 I need to check that a user is registered and get your information, but all in a file within the same domain but outside the structure of Magento: /mymagento/islogged.php require_once ('app/Mage.php'); Mage::app(); define('ROOT', Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)); $sessionCustomer = Mage::getSingleton("customer/session"); if($sessionCustomer->isLoggedIn()) { $customer = $sessionCustomer->getCustomer(); $telefono = $customer->getTelefonoMovil(); } else { header('Location: