Hi,
I'm trying to create a login box for out WHMCS installation. I have tried to get this working the last 4 months, but I'm still stuck.
But i have finally found out that the problem is somewhere in MODX. I need to get the $_SESSION['uid'] from our whmcs installation. If writing the code in a separate test.php file, it all works great. When trying exactly the same code in modx, i get nothing in return..
<?php
require( "dbconnect.php" );
require( "includes/functions.php" );
if ($_SESSION['uid']) {
echo "Yay, this works.";
} else {
echo "No, this does not(!) work! :-(";
}
In a separate php file: Yay, this works
In a MODX snippet: No, this does not(!) work! :-(
Anyone have any idea what I can do to get this session from within modx?