The process of user and password verification is where the real power of ASP comes into play. You can compare a user's submitted credentials to literally any information store that offers a query interface, and that you know how to interact with. The Windows Operating System comes prepopulated with a huge selection of COM objects, which you can utilize to interact with your data source. The simplest example is the FileSystemObject
, which allows you to read files directly from the server's hard drive.
For example, consider the following screenshot:
The preceding sample is not UAG-specific, but rather just simple ASP code to read a file off the hard drive and parse its contents to look for the username and password. In the preceding code, we read the flat text file users.txt
, which is a semicolon-separated list of user+password combinations formatted as user%password
. We read the content of the file into a variable, and then use the split
command to convert that list into...