Jump to main content Jump to doc navigation

modX.checkSession

Other versions: 3.x — Found a problem? Please edit this page or report an issue.

modX::checkSession

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

Syntax

API Doc: http://api.modx.com/revolution/2.2/db_core_model_modx_modx.class.html#%5CmodX::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