I have a website that uses SQL database to track clients and prospects. I need a secure asp script written to log in clients and also to log in agents using a username and password. I have found several scripts online but I want one written for my site that is easy to use and to be sure it is secure. The script simply needs to check that username and password are correct and forward the person to their page using their id # as the parameter. The script also needs to have a line of code I can place at the top of each secure page to check that the person has logged in and is not just someone trying to hack into a page using different id #'s, passwords, usernames, etc.
script should also include a way for users to retrieve password and username info through their email.