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

Day 17. Advanced Techniques: Tracking an... > The Registration and Login System

The Registration and Login System

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

register— Asks the user to enter a username for her account. Each account will be forced to have a unique username, so we'll want to check it before saving the user account information.

register2— This page receives the output of the first register page, checks to see if the username is already registered, and then, if it is valid, prompts for a password to be saved with the account.

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

login2— Verifies the username and password. If the username and password are valid, a cookie is set on the user's computer, and she 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