This step-by-step guide presents a free cut-and-paste example code of a username and password login web based system. Developed using ASP, Microsoft Access and JavaScript.
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.