modX.checkSession

Skip to end of metadata
Go to start of metadata


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');

See Also

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.