Hello there,
I'm having a little issue trying to use hasSessionContext.
I'm looking for a function that tells me if the user is logged in in the front end only. I have only one context, the web default one.
The problem is that hasSessionContext always returns true tu me. Whether logged in in the front end, back end, or not at all.
Here's the code i wrote to test it :
$isAuthenticated = $modx->user->hasSessionContext('web');
if($isAuthenticated = true)
{
return "Logged In";
}
else
{
return "Off";
}
As it souldn't be a real issue for those who are used to this function, please answer soon

Thanks a lot
[ed. note: duk3fy last edited this post 15 years ago.]