We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Revo Discussions & Support
Search
User session and modUserGroups
<
1
2
>
24,544 Posts
BobRay
Reply #11,
8 years, 5 months ago
Yes, that or check with:
if ($modx->user->hasSessionContext($modx->context->get('key'))) { }
If they don't have a sessionContext, they're not logged in so there's no need to log them out.
Did I help you?
Buy me a beer
Get my Book:
MODX:The Official Guide
MODX info for everyone:
http://bobsguides.com/modx.html
My MODX Extras
Bob's Guides is now hosted at
A2 MODX Hosting
<
1
2
>