Text - web design, promotion, consulting, training

        
         Webmaster Resources - Macromedia Dreamweaver Tutorial

Creating Login Authentication and Restricted Access Pages in Dreamweaver MX

Macromedia Dreamweaver Tutorial - Login Authentication Example: 

This example assumes that you have created a dynamic Dreamweaver Web Site utilizing Active Server Pages, have created a database with User Authentication information and have established a database connection.

In this example you will create three pages;

  • Login Page
  • Secure Page
  • "Sorry" Message Page

View the completed login page.

Login Page - The page is named login.asp and is made up of a form that is named, userAuthentication.

A screen shot is highlighted below.

image - Screenshot 1

image - Screenshot2

 

This shows the text box detail in the userAuthentication form. 

The User Name text field is named username and the Password text field is named
password.

 


Select the username text field and in your Applications

Panel
, select the Server Behaviors Tab.

Select User Authentication.

Select LogIn User.

image - Screen shot 9


The LogIn User Panel will appear and you may select from the list for the:

Username Field - from the form input field

Password Field - from the form input field

Connection - your connection name

Table  - userAuthentication table in the Database

Username Column - from the database

Password Column  - from the database

Select the page(s) that you will go to if login succeeds or fails.

In this example, we are restricting access based on Username and Password.

Click OK and save your login page.

image - Screen shot 7

image - Screen shot 6

image - Screen shot 8

 

 

Next, open the page that has your restricted content.
In your Application Panel, click on your Server Behaviors Tab.



image - Screen shot 8

 

 

 

 

 

 

 

 



Once again, select User Authentication and then select Restrict Access to Page.

You Application Panel will look like this.image - Screen shot 10

Close and save your page.  You may want to also create your sorry.asp page.  This is the page that will appear if a user does not supply proper authentication credentials.  Put all you files on the server and your ready to go.

 

Click here to print this page

 

Copyright ©2007 BusinessTracks Inc., All Rights Reserved.

Contact Us