Jump to main content Jump to doc navigation

modUser.removeSessionContext

Other versions: 3.x — Other languages: EN RU — Found a problem? Please edit this page or report an issue.

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