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 void OnStartPage(IScriptingContext objContext)
{
    IResponse response = objContext.getResponse();

    ISessionObject session = objContext.getSession();
    
    Variant v = session.getValue("Var1");
    response.Write(v); 	
}
 

© Microsoft Corporation. All rights reserved.