Jump to main content Jump to doc navigation

modX::checkSession

Checks to see if the user has a session in the specified context.

Syntax

API Doc: modX::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