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: '.ROOT.'customer/account/login/');
}
But it does not work, can not find the session. I have reviewed the following threads: