Jump to main content Jump to doc navigation

modUser.removeSessionCookie

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

modUser::removeSessionCookie

Removes a session cookie for a user.

Syntax

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

void removeSessionCookie (string $context)

Example

Remove the Session Cookie for the User in the 'sports' Context.

$user->removeSessionCookie('sports');

See Also