Hello,
to login to my site i use the weblogin snippet, so in my private pages i want to know : if the visitor is logged in or not?
is there a session variable like $_SESSION[’is_connected’]? or there is another way to know that?
Thank you
There is a PHx modifier that checks for web user logged in
and then gives the option to go to a chunk or string if it
is and to another one if the user is not logged in.
Hope it helps...
Website: www.mercologia.com
MODX Revo Tutorials: www.modxperience.com
MODX Professional Partner
The Personalize snippet will also do that. It shows one chunk to logged-in users and another to the rest.