Hi everybody, there is an ambigious thing in the name of the snippet isLoggedIn.
In fact this snippet doing something only if you are Not logged in.
A redirection to the page you want. So you should call it isNotLoggedIn.
I tought i could use this snippet to redirect allready logged-in users to their own pages. Specialy in the login page wich in my case is useless when allredy login and wich is my start page.
So i hacked isLoggedIn to use it has well. At the fourth line :
if (!$modx->user->hasSessionContext($ctxs)) {
Without exclamation mark like this :
if ($modx->user->hasSessionContext($ctxs)) {