This script will validate form input against field in a database. The script will connect to the database and query the database fields - if the form input matches the database, a cookie will be allocated which will remain across any further ASP pages, until destroyed. Page views of admin or member pages can then be validated by checking for the cookie, if the cookie is found, the user can continue and if the cookie is not found, the user is redirected back to the login screen.
This is a quick and easy guide to building an authentication system in ASP. First, it explains Authentication: What it is, how you work with it, and what options are currently available to you. Then, it explains each choice in more detail to help you decide which is the best way for you to authenticate your web users.