-
- 15 Posts
Hi guys.
I am starting to go bonkers here.
I think I want to do something really simple. I did install Login 1.5.2 in my Revo 2.0.7 and did put the [[!Login? &loginResourceId=`310`]] snippet on my start page.
In the backend I create a user...
On my Startpage I check if a user is logged in:
"Hello, ".$modx->getLoginUserName()."!";
otherwise Hello Guest is displayed...
So I login the user and I get redirected to the page 310... That’s fine. But my $modx->getLoginUserName() doesn’t show me a username, so I am still a guest on the frontend. In the backend the login count for the user gets increased by 1. So the login works. But somehow the session is not linked to the frontend.
I am trying this with the sample page of the modx installation...
Is there anything else I have to do to make the Login Snippet work?
I can’t find a step-by-step tutorial...
-
- 15 Posts
ok, it works online on the unix server. same configuration. now I am able to login to multiple contexts...
hmmm.
-
- 24,544 Posts
Quote from: ragnar at Mar 04, 2011, 11:14 AM
One thing that is different. When I set the "User Group Access to Context" I don’t have the Access Policy "Resource" there. I can pick all the others, like Administrator, Object etc.. Strange... But even when I give Administrator Access it won’t work
That’s normal. Context Access ACL entries should never use the "Resource" policy -- That’s for Resource Group Access ACL entries.