ONE Active Server Pages Product Home Page Developer Site Version


ASP Session_OnStart Event

The Session_OnStart event occurs when the server creates a new session. The server processes this script prior to executing the requested page. With the Session_OnStart event, when session-wide variables are set, those variables will be set before any pages are accessed. All of the built-in objects are available and can be referenced in the Session_OnStart event script.

Syntax: Session_OnStart Event
<SCRIPT LANGUAGE=ScriptLanguage RUNAT=Server> 
Sub Session_OnStart
. . .
End Sub
Parameters: Session_OnStart Event


Specifies the scripting language used to write the event script, either Sun ONE ASP VBScript or Sun ONE ASP JavaScript. If more than one event uses the same scripting language, the events can be enclosed within a single set of <SCRIPT> tags.


Must be Server.

See also:

Scripting Languages Reference