I created an external script test.php of Magento But, i don' t succeed to retreive the customer id of the session the script is as follows : " <?php require_once 'app/bootstrap.php'; /\* Store or website code _/ $mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : ''; /_ Run store or run website _/ $mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store'; /_ Additional local.xml file from environment variable */ $options = array(); if (!empty($_SERVER['MAGE_LOCAL_CONFIG'])) { $options['local_config'] = $_SERVER['MAGE_LOCAL_CONFIG']; } Mage::init($mageRunCode, $mageRunType); // Mage::app($mageRunCode, $mageRunType); $customer_id = Mage::getSingleton('Mage_Customer_Model_Session')->getCustomerId() ; echo "customer id :".$customer_id."\n"; ?> " To test, firstly, i authentificate a user via Magento. Secondly, i launch the script test.php. But the customer id isn' t displayed. Thanks to explain how to retreive session customer data in an erternal script ? .