Retrieving a Variable from a Built-in Object

The following example demonstrates how to retrieve the value of variable stored in the Session object.

Public Function OnStartPage(myScriptingContext As ScriptingContext)

  'Create a copy of the Session object
  Set mySession = myScriptingContext.Session

  'Create a copy of the Response object
  Set myResponse = myScriptingContext.Response

  'Print the value of var1 stored in the session object
  myResponse.Write (mySession("var1"))

End Function

© Microsoft Corporation. All rights reserved.