This question has been answered by BobRay. See the first response.
[[!BypassLogin]]
/* BypassLogin snippet */ if ($modx->user->hasSessionContext($modx->context->get('key'))) { $memberPageId = 12; // set to actual ID of the member page $url = $modx->makUrl($memberPageId, "", "", "full"); $modx->sendRedirect($url); } return '';
if ($modx->user->hasSessionContext('web')) {
<p><a href="[[~17? &service=`logout`]]">Logout</a></p>
/* BypassLogin snippet */ if ($modx->user->hasSessionContext($modx->context->get('key'))) { if (isset($_GET['service']) && ($_GET['service'] === 'logout')) { return ''; } $memberPageId = 12; // set to actual ID of the member page $url = $modx->makUrl($memberPageId, "", "", "full"); $modx->sendRedirect($url); } return '';
/* BypassLogin snippet */ if (isset($_GET['service']) && ($_GET['service'] === 'logout')) { return ''; } if ($modx->user->hasSessionContext($modx->context->get('key'))) { $memberPageId = 12; // set to actual ID of the member page $url = $modx->makUrl($memberPageId, "", "", "full"); $modx->sendRedirect($url); } return '';