SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1306 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


4. In the If Access Denied, Go To box, browse to the URL you want to send users to if they??™re not
authorized to view the page. This page should have a sentence or two telling users why they??™re at
this page, as well as a form for them to log in.
To restrict pages based on access level, add a login page as shown in Figure 23-21. This is handy if you
want to have one login for both your administrators and your regular customers. One access level may be
able to change user details, whereas another can only view those details. In step 12 of creating the login
form in the previous section, choose the Restrict Access Based On Username, Password, and Access Level
option. Next, choose the field from your table that contains the access levels, as shown in Figure 23-22.
FIGURE 23-22
Use the Get Level From list menu in the Log In User dialog to restrict access to a page to a specific group of users.
This gives you more granular control over your site.
759
Crafting Multiple-Page Applications 23
To restrict access based on access levels, follow these steps:
1. Open a dynamic page to which you want access restricted.
2. In the Server Behaviors panel, click the Add (+) button and select User Authentication ??? Restrict
Access To Page. The Restrict Access To Page dialog box, shown in Figure 23-23, is displayed.


Pages:
1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318