Last updated Apr 7th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
$292 per month—let's make that $500!Learn more
Returns an array of user session context keys.
API Doc: http://api.modx.com/revolution/2.2/db_core_model_modx_moduser.class.html#%5CmodUser::getSessionContexts()
array getSessionContexts ()
Get all user seesion contexts for this user that is logged into the web and mgr contexts:
$keys = $user->getSessionContexts(); print_r($keys); // prints Array ( 'web', 'mgr' );