MACROMEDIA DREAMWEAVER MX 2004-USING DREAMWEAVER Use Manual page 672

Hide thumbs Also See for DREAMWEAVER MX 2004-USING DREAMWEAVER:
Table of Contents

Advertisement

Redirecting unauthorized users to another page
To prevent unauthorized users from accessing a page, add a Restrict Access To Page server
behavior to it. The server behavior redirects the user to another page if the user attempts to bypass
the login page by typing the protected page's URL in a browser, or if the user is logged in but
attempts to access the protected page without the proper access privileges.
Note: The Restrict Access To Page server behavior can only protect HTML pages. It does not
protect other site resources such as image files and audio files.
If you want to give many pages on your site the same access rights, you can copy and paste access
rights from one page to another.
To redirect unauthorized users to another page:
Open the page you want to protect.
1
In the Server Behaviors panel (Window > Server Behaviors), click the Plus (+) button and select
2
User Authentication > Restrict Access To Page from the pop-up menu.
The Restrict Access To Page dialog box appears.
Complete the dialog box.
3
For instructions, click the Help button in the dialog box.
Click OK.
4
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:
Open the protected page and select the Restrict Access To Page server behavior listed in the
1
Server Behaviors panel (not the one in the Plus (+) pop-up menu).
Click the arrow button in the top right corner of the panel and select Copy from the
2
pop-up menu.
The Restrict Access To Page server behavior is copied to your system's Clipboard.
Open another page you want to protect in the same way.
3
In the Server Behaviors panel (Window > Server Behaviors), click the arrow button in the top
4
right corner and select Paste from the pop-up menu.
Repeat steps 3 and 4 for each page you want to protect.
5
Related topics
"Storing access privileges in the user database" on page 672
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.
672
Chapter 40: Building ColdFusion Applications Rapidly

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-USING DREAMWEAVER and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents