modUser.getSessionContexts
Last updated Apr 6th, 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.
Backers
Budget
$306 per month—let's make that $500!
Learn moremodUser::getSessionContexts¶
Returns an array of user session context keys.
Syntax¶
array getSessionContexts ()
Example¶
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' );
See Also¶
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.
Backers
Budget
$306 per month—let's make that $500!
Learn more