Accessibility
 
Home > Products > UltraDev > Support > Building Common Applications
Dreamweaver UltraDev Icon Macromedia Dreamweaver UltraDev Support Center - Building Common Applications
Restricting access to authenticated users

After building the log-in page, you add a Restrict Access To Page server behavior to each page in the owner module except the log-in page. This server behavior checks whether the person requesting the page has logged in successfully. If so, the server sends the requested page to the user's browser. If not, the server sends the log-in page instead so the user can log-in.

To restrict access to a page:

1 You open the page in UltraDev.
2 In the Server Behaviors panel (Window > Server Behaviors), you click the plus (+) button and choose User Authentication > Restrict Access To Page from the pop-up menu.
The Restrict Access To Page dialog box appears.
3 You accept the default restriction option by selecting Username and Password.
4 You specify the page to open, login.jsp, if an unauthorized user attempts to open the protected page.
The server behavior's completed dialog box looks as follows:
5 You click OK to add the server behavior to the page.
You need to add the server behavior to each page in the owner module. You could repeat the procedure described above, but you decide to save time by copying and pasting the server behavior to each page, as follows.

First, you select the server behavior in the Server Behaviors panel, click the arrow button in the top right corner of the panel, and choose Copy from the pop-up menu, as follows.

Next, you open another page in the module, click the arrow button in the top right corner of the Server Behaviors panel, and choose Paste from the pop-up menu. UltraDev adds the server behavior to the page. Finally, you open each remaining page and paste the server behavior into it by using the same technique.

To Table of Contents Back to Previous document