ONE Active Server Pages Product Home Page Developer Site Version


ASP Session Object

The Session object stores information needed for a particular user-session.

Variables stored in the Session object are not discarded when the user jumps between pages in the application, but rather persist for the entire user-session. The Web server automatically creates a Session object when a Web page (from a server application) is requested by a user who does not already have a session. The server destroys the Session object when the session expires or is abandoned.

The AllowSessionState registry or configuration file setting controls the creation of Session objects. If AllowSessionState is set to FALSE, the Session object cannot be used. The default is to use Sessions.

Session object event scripts are declared in the global.asa.

Note icon Note Session state is only maintained for browsers that support cookies.

In this section:

Syntax: ASP Session Object

ASP Session Object Collections

ASP Session Object Properties

ASP Session Object Methods

ASP Session Object Events

Remarks: ASP Session Object