The ISessionObject::get_Value method retrieves the value of a variable stored in the Session object.
HRESULT get_Value(
BSTR bstrValue, // contains the variable name
VARIANT * pvar // pointer to a VARIANT that receives the variable value
);
You can store values in the Session object. Information stored in the Session object is available throughout the session and has session scope.