I have to read a $_SESSION['name']
in a file outside magento or better is in /magento/folder.
I tried any solution without good result.
Example
Mage::getSingleton('core/session')->setUName($_SESSION['username']);
In external file use this code:
require_once("../app/Mage.php");
umask(0);
Mage::app();
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);
Mage::init();
$_SESSION['username'] = Mage::getSingleton('core/session')->getUName();
Result??? Variable empty....
I'm crazying with magento.... I need this one variable!!!!
If someone can help me I'll say thanks.