Macromedia dreamweaver 8-using dreamweaver User Manual

Page of 1030
882
Chapter 40:  Building ColdFusion Applications Rapidly
3.
Complete the dialog box.
For instructions, click the Help button in the dialog box.
4.
Click OK.
Dreamweaver adds a server behavior to the page that allows only authorized users to view the 
page.
To copy and paste a page’s access rights to other pages on the site:
1.
Open the protected page and select the Restrict Access To Page server behavior listed in the 
Server Behaviors panel (not the one in the Plus (+) pop-up menu).
2.
Click the arrow button in the top right corner of the panel and select Copy from the 
pop-up menu.
The Restrict Access To Page server behavior is copied to your system’s Clipboard.
3.
Open another page you want to protect in the same way.
4.
In the Server Behaviors panel (Window > Server Behaviors), click the arrow button in the 
top right corner and select Paste from the pop-up menu.
5.
Repeat steps 3 and 4 for each page you want to protect.
Related topics
Storing access privileges in the user database 
This building block is required only if you want certain logged-in users to have different 
access privileges. If you simply require users to log in, then you don’t need to store access 
privileges.
If you want certain logged-in users to have different access privileges, make sure your database 
table of users contains a column specifying each user’s access privileges (Guest, User, 
Administrator, and so on). The access privileges of each user should be entered in the database 
by the site administrator.
In most database applications, you can set a column to a default value each time a new record 
is created. Set the default value to the most common access privilege on your site (for example, 
Guest); then manually change the exceptions (for example, changing Guest to Administrator). 
The user now has access to all administrator pages.
Make sure each user in the database has a single access privilege, such as Guest or 
Administrator, not multiple privileges like “User, Administrator”. If you want to set multiple 
access privileges for your pages (for example, all guests and administrators can see this page), 
then set those privileges at the page level, not the database level.