This method of the IScriptingContext interface retrieves the Session object.
public abstract ISessionObject getSession();