Accessibility
 
Home > Products > UltraDev > Support > Building Common Applications
Dreamweaver UltraDev Icon Macromedia Dreamweaver UltraDev Support Center - Building Common Applications
Adding the Log In User server behavior

You add a Log In User server behavior to make sure the user name and password users enter are valid.

When a user clicks the Submit button on the login page, the Log In User server behavior compares the values entered by the user against the values for registered users in the database table. If the values match, the server behavior opens one page (usually the site's start page). If the values do not match, the server behavior opens another page (usually a page alerting the user that the login attempt failed).

To add the Log In User server behavior:

1 In the Server Behaviors panel (Window > Server Behaviors), click the plus (+) button and choose User Authentication > Log In User from the pop-up menu.
The Log In User dialog box appears.
2 Specify the form and the form objects visitors use to enter their user name and password.
3 Specify the database table and columns that contain the user names and passwords of all the registered users.
The server behavior compares the user name and password a visitor enters on the login page against the values in these columns.
4 Specify a page to open if the login attempt succeeds. The specified page is usually the site's start page.
5 Specify a page to open if the login attempt fails. The specified page usually alerts the user that the attempt failed and lets the user try again.
6 Specify whether to grant access to the page based on user name and password alone, or based on authorization level too. For more information, see "Building a page only authorized users can access" in Using UltraDev or in Dreamweaver UltraDev Help (Help > Using UltraDev).
7 Click OK.
Your login page is now ready to accept user names and passwords.

The last step is restricting page access so that only authorized users can view specified pages of your site.

Restricting page access to authorized users

To Table of Contents Back to Previous document