Building a login page
Your web application can contain a page that lets registered users log in to the site.
For example, the following page asks registered users to log in:
A login page is made up of the following building blocks:
- A database table of registered users (see Creating a database table of registered users)
- An HTML form to let users enter a user name and password (see Letting users log in)
- A Log In User server behavior to make sure the entered user name and password are valid (see Checking the user name and password)
A session variable consisting of the user name is created for the user when the user logs in successfully.