I'm making a small members-only site for a client and decided to forgo ResourceGroups and use Bob's method instead
http://bobsguides.com/blog.html/2013/05/22/protecting-pages-the-easy-way/
But I'm having trouble with some kind of permissions loop beteen my Login and Welcome page.
Here's my problem
Users are succesfully loggedin and directed to my Welcome page until I protect that Welcome page.
As soon as I protect my welcome page, loggedin users are bounced back to my login page which just displays a lougout link.
Here's my setup:
My homepage is public and displays a Login form
• Login (1)
and uses the following Login script
[[!Login? &tplType=`modChunk` &loginTpl=`lgnLoginTpl-custom-Home` &loginResourceId=`15` &logoutResourceId=`1` ]]
Upcon successful login, I am directing people to my page called
• Welcome (15)
That works great but I realised I need to protect this Welcome (15) page from direct access from non loggedin users by bouncing them back to the Home/Login. So I added the snippet as outlined in the BobsGuides tutorial
/* Redirect anyone who is not logged in to Resource 1 */
[[!PrivatePage? &redirectTo=`1`]]
As soon as I do that it loads up the Login page but just displays a logout link.
Any ideas as to why the loop is happening?