modUser.addSessionContext
Last updated Apr 17th, 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::addSessionContext¶
Adds a new context to the user session context array.
Syntax¶
void addSessionContext (string $context)
Example¶
Add a 'sports' Context session to the user.
$modx->addSessionContext('sports');
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