Code

Working With Cookies in ASP

Cookies are small text files that are stored on users' machines after they visit your website. When they go back to a website, the cookie information is sent along also, and can therefore be retrieved by the site that set them. Cookies are a great way to store non-essential user information.

Using Server.MapPath() in ASP

When configuring ASP scripts or writing new ones, it's often necessary to find the physical path to some file or database on your server. This is especially true if you're ever using the FileSystemObject (FSO). Unfortunately, unlike friendly virtual paths (i.e. /database/users.mdb), physical paths are often hard to remember (i.e. C:\websites\12.34.567.890\domain.com\database\users.mdb). Luckily, there's a really simple way to find the physical path to a file, as long as you know the virtual path. To do this, we take advantage of the Server.MapPath() function.

Listing Server Variables in ASP

The set of server variables contains information like paths, cookie settings, CGI version, and much more. Here I'll explain how to list your server variables.