• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Day 17. Advanced Techniques: Tracking an... > Developing the Registration and Logi...

Developing the Registration and Login System

The login system for this site will require four pages—two for the login process, and two for the user's registration. At the end of the registration process, the users will be allowed to view the site with a default set of preferences, or they can begin to set their own. The functions of the four pages that we need in order to set up and log into the user account are as follows:

register.asp— Asks the users to enter a username and password for their accounts. Each account will be forced to have a unique username, so we'll want to check it before saving the user's account information. If the check fails, the error.asp file will be displayed; otherwise, the username and password will be stored, and the users will be sent to the login.asp page.

error.asp— This is a static page that displays an error message if the users enter a username that already exists.

login.asp— Collects the username and password for a valid user account.

verify.asp— Verifies the username and password. If the username and password are valid, a cookie is set on the user's computer, and the user is provided with a link to the content page.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint