Log In System: DWMX 2004
The sorry page
The sorry.php page should warn the user that the log in didn't succeed. There should be two links. One will take the user back to the log in page to try again, if the failure was only a typo. The second link will invite the user to sign in and register as a new member. There is no scripting involved in this page.
The restricted page
The restricted page is our members-only pages. There you will place the content that is available only to registered users. You will also provide a log out link.

Select the text “log out” and go to Server Behaviors. Click the plus sign and choose User Authentication>Log out user.

Next, we need to define the access level of the page. Is it available to admin or members or both? We need to also prevent someone from bookmarking the page and bypassing the login system.
Still in the restricted page, choose Server Behaviors. Click the plus sign and choose User Authentication>Restrict Access to the Page. Click the define button to add two access levels to your system. Next to the name field, type admin. Click the plus button and now type member. Click OK. You should see your two new access levels. Apple key (or control key on PC) to select both admin and member.
The admin page
We will set up the admin.php page as well. Type “Welcome to the administrator page.” Add a log out behavior if you like. We will then add the same restrict access behavior, but this time we will allow access to only members who are in the admin userGroup.

We're almost there. Now we will create the registration page for those who would like to join our elite ranks-->