src/Web/SessionContext.php
public function loadObjVar($objName, $varName, &$value, $stateful = false)
    {
        //Openbizx::$app->getLog()->log(LOG_ALERT, __METHOD__, ' | name : ' . $varName . ' | value : ' . $value);
        //Openbizx::$app->getClientProxy()->showClientAlert( __METHOD__ . ' | name : ' . $varName . ' | value : ' . $value);

        if (preg_match('/\./si', $objName)) {
            $objName = $this->getNamespace() . '#' . $objName;
        }
        if (!$stateful) {
            if (!$this->_sessObjArr) {
                return null;
            }
            if (isset($this->_sessObjArr[$objName][$varName])) {
                $value = $this->_sessObjArr[$objName][$varName];
            }
        } else {
            if (!$this->_statefulSessObjArr) {
                return null;
            }
            if (isset($this->_statefulSessObjArr[$objName][$varName])) {
                $value = $this->_statefulSessObjArr[$objName][$varName];
            }
        }
    }
public function loadObjVar($objName, $varName, &$value, $stateful = false)
    {
        //Openbizx::$app->getLog()->log(LOG_ALERT, __METHOD__, ' | name : ' . $varName . ' | value : ' . $value);
        //Openbizx::$app->getClientProxy()->showClientAlert( __METHOD__ . ' | name : ' . $varName . ' | value : ' . $value);

        if (preg_match('/\./si', $objName)) {
            $objName = $this->getNamespace() . '#' . $objName;
        }
        if (!$stateful) {
            if (!$this->_sessObjArr) {
                return null;
            }
            if (isset($this->_sessObjArr[$objName][$varName])) {
                $value = $this->_sessObjArr[$objName][$varName];
            }
        } else {
            if (!$this->_statefulSessObjArr) {
                return null;
            }
            if (isset($this->_statefulSessObjArr[$objName][$varName])) {
                $value = $this->_statefulSessObjArr[$objName][$varName];
            }
        }
    }
Get single session variable of a stateful object

@param string $objName - object name
@param string $varName - vaiable name
@param mixed $value - reference of the value (in/out)
@param boolean $stateful - is stateful?
@return void