modX::checkSession
Checks to see if the user has a session in the specified context.
Syntax
API Doc: http://api.modxcms.com/modx/modX.html#checkSession
boolean checkSession ([string $sessionContext = 'web'])
Example
Check to see if the user has a session in the 'sports' context.
$modx->checkSession('sports');