I have to implement a single sign on system to let users enter in a magento account.
The SSO part is not a problem.
To complete the code a need to force the magento login.
I’ve partially soplved the problem:
$session = Mage::getSingleton('customer/session');
The previous code (simplified) works only if I launch Mage::run();
I other words it works only if I put it in the “index.php”.
The same code doesn’t work if I put it in a “login.php” script and then I redirect the browser to index.php.