protected function setup()
    {
        if (array_key_exists($this->secretStorage, $_SESSION)) {
            if (!is_array($_SESSION[$this->secretStorage])) {
                $_SESSION[$this->secretStorage] = array('locks' => array($this->_namespaceName => false));
            } else {
                if (!array_key_exists($this->_namespaceName, $_SESSION[$this->secretStorage]['locks'])) {
                    $_SESSION[$this->secretStorage]['locks'][$this->_namespaceName] = false;
                } else {
                    if (!is_bool($_SESSION[$this->secretStorage]['locks'][$this->_namespaceName])) {
                        $_SESSION[$this->secretStorage]['locks'][$this->_namespaceName] = false;
                    }
                }
            }
        } else {
            $_SESSION[$this->secretStorage] = array('locks' => array($this->_namespaceName => false));
        }

        if (array_key_exists($this->publicStorage, $_SESSION)) {
            if (array_key_exists('store', $_SESSION[$this->publicStorage])) {
                if (!array_key_exists($this->_namespaceName, $_SESSION[$this->publicStorage]['store'])) {
                    $_SESSION[$this->publicStorage]['store'][$this->_namespaceName] = array();
                }
            } else {
                $_SESSION[$this->publicStorage]['store'] = array($this->_namespaceName => array());
            }
        } else {
            $_SESSION[$this->publicStorage] = array('store' => array($this->_namespaceName => array()));
        }

        return true;
    }
protected function setup()
    {
        if (array_key_exists($this->secretStorage, $_SESSION)) {
            if (!is_array($_SESSION[$this->secretStorage])) {
                $_SESSION[$this->secretStorage] = array('locks' => array($this->_namespaceName => false));
            } else {
                if (!array_key_exists($this->_namespaceName, $_SESSION[$this->secretStorage]['locks'])) {
                    $_SESSION[$this->secretStorage]['locks'][$this->_namespaceName] = false;
                } else {
                    if (!is_bool($_SESSION[$this->secretStorage]['locks'][$this->_namespaceName])) {
                        $_SESSION[$this->secretStorage]['locks'][$this->_namespaceName] = false;
                    }
                }
            }
        } else {
            $_SESSION[$this->secretStorage] = array('locks' => array($this->_namespaceName => false));
        }

        if (array_key_exists($this->publicStorage, $_SESSION)) {
            if (array_key_exists('store', $_SESSION[$this->publicStorage])) {
                if (!array_key_exists($this->_namespaceName, $_SESSION[$this->publicStorage]['store'])) {
                    $_SESSION[$this->publicStorage]['store'][$this->_namespaceName] = array();
                }
            } else {
                $_SESSION[$this->publicStorage]['store'] = array($this->_namespaceName => array());
            }
        } else {
            $_SESSION[$this->publicStorage] = array('store' => array($this->_namespaceName => array()));
        }

        return true;
    }
protected function setup ( ) { if ( array_key_exists ( $ this -> secretStorage , $ _SESSION ) ) { if ( ! is_array ( $ _SESSION [ $ this -> secretStorage ] ) ) { $ _SESSION [ $ this -> secretStorage ] = array ( 'locks' => array ( $ this -> _namespaceName => false ) ) ; } else { if ( ! array_key_exists ( $ this -> _namespaceName , $ _SESSION [ $ this -> secretStorage ] [ 'locks' ] ) ) { $ _SESSION [ $ this -> secretStorage ] [ 'locks' ] [ $ this -> _namespaceName ] = false ; } else { if ( ! is_bool ( $ _SESSION [ $ this -> secretStorage ] [ 'locks' ] [ $ this -> _namespaceName ] ) ) { $ _SESSION [ $ this -> secretStorage ] [ 'locks' ] [ $ this -> _namespaceName ] = false ; } } } } else { $ _SESSION [ $ this -> secretStorage ] = array ( 'locks' => array ( $ this -> _namespaceName => false ) ) ; } if ( array_key_exists ( $ this -> publicStorage , $ _SESSION ) ) { if ( array_key_exists ( 'store' , $ _SESSION [ $ this -> publicStorage ] ) ) { if ( ! array_key_exists ( $ this -> _namespaceName , $ _SESSION [ $ this -> publicStorage ] [ 'store' ] ) ) { $ _SESSION [ $ this -> publicStorage ] [ 'store' ] [ $ this -> _namespaceName ] = array ( ) ; } } else { $ _SESSION [ $ this -> publicStorage ] [ 'store' ] = array ( $ this -> _namespaceName => array ( ) ) ; } } else { $ _SESSION [ $ this -> publicStorage ] = array ( 'store' => array ( $ this -> _namespaceName => array ( ) ) ) ; } return true ; }
Ensure the session contains the data we expect to see.

@return boolean
Ensure the session contains the data we expect to see .