Jump to main content Jump to doc navigation

modUser::removeSessionContext

Removes a user session context.

Syntax

API Doc: http://api.modx.com/revolution/2.2/db_core_model_modx_moduser.class.html#%5CmodUser::removeSessionContext()

void removeSessionContext (string|array $context)

Example

Remove the session for the User in the 'sports' Context.

$user->removeSessionContext('sports');

See Also