ASPLogin Samples
![]()
| Overview |
|
This function allows you to install an ASPLogin sample that provides user authentication and management for Active Server Page (ASP) based Web sites and applications. |
| Installation |
|
The samples are installed on /ASPLogin directory, not the Web root. |
| Configurations |
|
You may edit asplogin.asp, aspldeny.asp, headers and footers to match your site. sign-up.asp page has a few variables that need to be setup. These variables are in the first 4 lines of the sign-up.asp. They are:
The same goes for the lost_your_password.asp script. Here are the variables that need to be set in this script as well.
ASPLogin will display an "invalid login" message on the login page if a user enters a user name/password combination that is not in the database. You may customize the "invalid login" message by setting Session ("asplLoginError") in global.asa (more on global.asa below). This is particularly useful for sites that are not written in English. |
| Enabling protection for your documents |
|
Each ASP file that will be protected by ASPLogin must have a small piece of ASP code at the start of the file, before any other HTML or server-side scripting. Microsoft ASP uses VBScript by default, however, an example is also provided in JScript. The following code should reside at the very top of your page:
Or, in JScript:
By placing this code on your ASP files, users will automatically be sent to the login page (asplogin.asp) the first time they access one of the ASP files. After logging on, visitors will be able to go to any protected page on your site without having to log on again during their site session. If they come back at a later date, they will be presented with the login page once again, regardless of which page they access first. |
After the ASPLogin samples are installed on your site, you can access the protected testing page at /asplogin/test.asp.
| Administration |
|
After the ASPLogin samples are installed on your site, you can log on to the administration page /asplogin/aspladmn.asp using the default user 'Admin', with the password 'Admin' in the ASPLogin pre-made database. You should change this user's password immediately when you first run the Web administration page. Note that ASPLogin passwords are case sensitive |
| Documentation |
|
After the ASPLogin samples are installed on the site, you can view the documentation on /asplogin/ASPLogin2000docs.htm. |