src/Web/SessionContext.php
public function clearSessionObjects($keepObjects = false)
    {
        if ($keepObjects == false) {
            unset($this->_sessObjArr);
            $this->_sessObjArr = array();
        } else { // add previous view's session object names in to a map
            if (isset($this->_sessObjArr)) {
                foreach ($this->_sessObjArr as $objName => $sessobj) {
                    //echo "save sess $objName <br/>";
                    $this->_prevViewObjNames[$objName] = 1;
                }
            }
        }
    }
public function clearSessionObjects($keepObjects = false)
    {
        if ($keepObjects == false) {
            unset($this->_sessObjArr);
            $this->_sessObjArr = array();
        } else { // add previous view's session object names in to a map
            if (isset($this->_sessObjArr)) {
                foreach ($this->_sessObjArr as $objName => $sessobj) {
                    //echo "save sess $objName <br/>";
                    $this->_prevViewObjNames[$objName] = 1;
                }
            }
        }
    }
Clear session variables of all stateful objects

@param boolean $keepObjects
@return void