Last updated Apr 17th, 2019 | Page history | Improve this page | Report an issue
Adds a new context to the user session context array.
API Doc: http://api.modx.com/revolution/2.2/db_core_model_modx_moduser.class.html#%5CmodUser::addSessionContext()
void addSessionContext (string $context)
Add a 'sports' Context session to the user.
$modx->addSessionContext('sports');