modUser.removeSessionCookie
Last updated Apr 17th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn moremodUser::removeSessionCookie¶
Removes the User's session cookie for a Context. The method body is currently empty (TODO in modUser::removeSessionCookie()), so the call removes nothing; endSession() is what actually expires the session cookie.
Syntax¶
void removeSessionCookie (string $context)
Example¶
$user->removeSessionCookie('sports');
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










