Here’s the scoop on logged-innedness in Revo:
In the common case where you only have the ’web’ context:
$isAuthenticated = $modx->user->hasSessionContext('web');
If you are using multiple contexts and want to know if the user is logged in to the current context, you can do this:
$isAuthenticated = $modx->user->hasSessionContext($modx->context->get('key'));
If you are using multiple contexts and want to know if the user is logged in to any of them, this code will do it:
$isAuthenticated = $modx->user->hasSessionContext(array('context1', 'context2', 'context3'));