VBScript Tutorials - Herong's Tutorial Notes
Dr. Herong Yang, Version 5.00

ASP Objects: Request, Response, Session and Application

This section describes additional objects provided by ASP: Request, Response, Session and Application. Your server-side VBScript code will use those objects to convert static Web pages into Web-based applications.

ASP enabled Web server, like IIS, provides a number run-time objects as part of the server side scripting environment:

  • Request: An object holding information the client sends to the server as an HTTP request.
  • Response: An object holding information the server sends to the client as an HTTP response.
  • Server: An object holding information common to running virtual directories.
  • Application: An object holding information common to all running HTTP sessions under a single virtual Web directory.
  • Session: An object representing a sequence of HTTP requests and responses from one client system.

The following diagram illustrates the relations among the ASP objects:

Server
 |- Application X
 |   |- Session A            Client A
 |   |   |- Request #1  <---  |
 |   |   |- Response #1 --->  |
 |   |   |- Request #2  <---  |
 |   |   |- Response #2 --->  |
 |   |   |- ......            |
 |   |
 |   |- Session B            Client B
 |   |   |- Request #1  <---  |
 |   |   |- Response #1 --->  |
 |   |   |- Request #2  <---  |
 |   |   |- Response #2 --->  |
 |   |   |- ......            |
 |   |- ......
 |
 |- Application Y
 |- ......

Sections in This Chapter

What is ASP (Active Server Pages)?

Static, Client-Side and Server-Side Scripting Pages

Setting Up IIS to Run ASP Pages - asp.dll

ASP Objects: Request, Response, Session and Application

ASP Object Example - Passing Values between Pages

Interacting with External Applications - ActiveX Data Object (ADO)

Dr. Herong Yang, updated in 2008
ASP Objects: Request, Response, Session and Application