Copyright © All rights reserved. Made By RichoSoft.  Terms of use | Privacy policy
Welcome.All Resources.Page Counters.Tips & Tricks Menu.Contact us.My Account.Site Map.
Welcome.All Resources.Page Counters.Tips & Tricks Menu.Contact us.My Account.Site Map.
Password Protecting Web Pages with an Account System in ASP 3.0
The whole system can be achieved with just a few pages dedicated to the system  and a little code on protected pages. The flow would look something like the chart below:
Log In Form on Index or own page
process _logon.asp
Check Log In Data and Log On
Wrong Data
Links to:
Register
Forgot Password
register.asp
Registration Form
Wrong Data
process_register.asp
Check Input for errors and criteria
forgot_password. asp
Request Email Address For Account, Form
forgot_password _process.asp
Check  email and account data and send email.
Set Session Variables for successful Log On. User now logged On, and can view Protected Pages.
Pages in your site that ALL visitors can see
No Verification Coding at top of page
Pages in your site that only logged in visitors can see
Verification Coding at top of page
Change_password .asp
Check  current password, get new & process
Verification Coding at top of page
The link to this page should ONLY appear on one or more of your protected pages.
i.e.they must be logged in first to change password
Send Email to User with password
Log Off Link on one or more pages.
logoff.asp
Abandon the current Session and clear all variables
Components Required:    Database to store user data.   Include file to connect to database.  Logon Form.   Log Off links. SMTP Server (If sending forgotten passwords to user.), Code for protected pages.
Pages: Process Logon. Forgot Password. Forgot_password_process.asp. Register. Process Register. Log Off. Change Password.
To see how this all fits together and download sample code. Please Log On if Registered or Register and Log On