VBScript Tutorials - Herong's Tutorial Examples - Version 5.20, by Dr. Herong Yang

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
 |- ......

Table of Contents

 About This Book

 Introduction of VBScript - Visual Basic Scripting Edition

 Variant Data Type, Subtypes, and Literals

 Arithmetic Operations

 Numeric Comparison Operations and Logical Operations

 String Operations - Concatenation and Comparison

 Variable Declaration and Assignment Statement

 Expression and Order of Operation Precedence

 Statement Syntax and Statement Types

 Array Data Type and Related Statements

 Array References and Array Assignment Statements

 Conditional Statements - "If ... Then" and "Select Case"

 Loop Statements - "For", "While", and "Do"

 "Function" and "Sub" Procedures

 Built-in Functions

 Inspecting Variables Received in Procedures

 Error Handling Flag and the "Err" Object

 Regular Expression Pattern Match and Replacement

 scrrun.dll - Scripting Runtime DLL Library

 Creating Your Own Classes

 IE Web Browser Supporting VBScript

IIS ASP Server Supporting VBScript

 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)

 WSH (Windows Script Host)

 References

 Printable Copy - PDF Version

ASP Objects: Request, Response, Session and Application - Updated in 2015, by Dr. Herong Yang