 Chapter 6
ASP Built-in Objects

Chili!Soft ASP provides five built-in or intrinsic objects for the Active Server Pages (ASP) framework: Request, Response, Application, Server, and Session. Built-in objects are objects that are included on all ASP pages, they do not need to be created before they can be used. The following table summarizes the built-in objects:
Built-in Object
|
Description
|
Application
|
Stores information (variables and objects) needed for all users of a particular application. Information stored in the Application object persist for the lifetime of the application.
|
Request
|
Provides access to values passed to the server by the client.
|
Response
|
Controls the output from an ASP script to the requesting client.
|
Server
|
Provides access to methods and properties on the server. These methods and properties typically serve as utility functions.
|
Session
|
Stores information (variables and objects) needed for a particular user session. Information stored in the Session object is not discarded when the user jumps between pages in the application, instead information persists for the entire user session.
|
Built-in objects simplify programming tasks by solving web protocol programming issues. For example, built-in objects can provide mechanisms to process data sent using the HyperText Transfer Protocol (HTTP). HTTP is a stateless technology and the server cannot track the location of users in an application or the use of an application. Using the built-in Session object an application (or object) can handle session management tasks.
Note:
Examples of ASP scripts in the examples which follow are assumed to be enclosed in script delimiters. The <%, %>, <SCRIPT>, and </SCRIPT> delimiters are generally not shown.
Copyright © 2000 Chili!Soft
|