Jump to main content Jump to doc navigation

modUser.removeSessionContextVars

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

modUser::removeSessionContextVars

Removes the session vars associated with a specific context.

Syntax

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

void removeSessionContextVars (string $context)

Example

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

$user->removeSessionContextVars('sports');

See Also