I have a complete separate PHP script that is not even under the SuiteCRM folder. What’s the easiest way for me to check if the user is currently logged into Suite.
I tried this and it didn’t work. Following that example just brings up the dashboard.
Also tried this:
if (!defined(‘sugarEntry’)) {
define(‘sugarEntry’, true);
}
chdir ("…/suitecrm");
require_once ‘include/entryPoint.php’;
global $current_user;
echo “cu = “.$current_user->user_name.”
”;
Empty even when logged in.