Forums

PHP

This topic is locked

User Control

Posted 01 May 2005 20:25:28
1
has voted
01 May 2005 20:25:28 Simon Bell posted:
I am attempting to use DMX2004 to create a web site, for a scout group, but that is irrelevant. The site has a secure and non-secure section. I have sorted the user login and defining the access levels, and I can get the users to log in. That all works fine but I'm attempting to get the user to log in to a certain page depending on the access level.

At the moment I have four access levels:
Administrator
Leader
Scout
Parent
Currently the user login cycles through a selection of pages as follows:
Leader_index
Scout_index
Parent_index
and if it gets that far it opens the failed page.
Now I have attempted to use the, restrict access to page function on all of the desired pages, which works fine as long as you only want one type of user to log in. The problem comes when I define the access levels on other pages as this adjusts all of the access lists on the other pages.

What am I doing wrong? Or is there an other way of doing it? This is the first time I have attempted something like this and so I'm well and truly open to criticism as I'm sure I'm approaching this from the wrong angle.

Reply to this topic