Building pages that restrict access to your site (ColdFusion,
ASP, JSP, PHP)
You can use Dreamweaver to build the following pages to restrict access to your site:
•
A page that requires users to register the first time they visit the site (see
page" on page
•
A page that lets registered users log in to the site (see
•
Pages that only authorized users can view (see
access" on page
The method you use is identical for ColdFusion, ASP, JSP, and PHP pages. Dreamweaver does
not have authentication server behaviors for ASP.NET pages.
Building a registration page
Your web application can contain a page that requires users to register the first time they visit
your site.
For example, the following page asks first-time users to register:
A registration page is made up of the following building blocks:
•
A database table to store login information about the users (see
about users" on page
•
An HTML form that lets users select a user name and password (see
user name and password" on page
You can also use the form to obtain other personal information from users.
•
An Insert Record server behavior to update the database table of site users (see
table of users in the database" on page
•
A Check New Username server behavior to make sure the user name entered by the user is not
taken by another user (see
666
Chapter 40: Building ColdFusion Applications Rapidly
666)
671)
667)
667)
"Making sure the chosen user name is unique" on page
"Building a login page" on page
"Building a page only authorized users can
668)
"Building a registration
"Storing login information
"Letting users choose a
"Updating the
668)
669)
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