src/Session.php
protected function load()
    {
        $id = $this->getId();
        $values = $this->getStore()->fetch($id);

        if ($values === false) {
            return false;
        }

        // metadata
        $metadata = $values[self::METADATA_NAMESPACE];
        $this->firstTrace = $metadata['firstTrace'];
        $this->lastTrace = $metadata['lastTrace'];
        $this->regenerationTrace = $metadata['regenerationTrace'];
        $this->requestsCount = $metadata['requestsCount'];
        $this->fingerprint = $metadata['fingerprint'];

        // values
        $this->values = $values;

        return true;
    }
protected function load()
    {
        $id = $this->getId();
        $values = $this->getStore()->fetch($id);

        if ($values === false) {
            return false;
        }

        // metadata
        $metadata = $values[self::METADATA_NAMESPACE];
        $this->firstTrace = $metadata['firstTrace'];
        $this->lastTrace = $metadata['lastTrace'];
        $this->regenerationTrace = $metadata['regenerationTrace'];
        $this->requestsCount = $metadata['requestsCount'];
        $this->fingerprint = $metadata['fingerprint'];

        // values
        $this->values = $values;

        return true;
    }
protected function load ( ) { $ id = $ this -> getId ( ) ; $ values = $ this -> getStore ( ) -> fetch ( $ id ) ; if ( $ values === false ) { return false ; } // metadata $ metadata = $ values [ self :: METADATA_NAMESPACE ] ; $ this -> firstTrace = $ metadata [ 'firstTrace' ] ; $ this -> lastTrace = $ metadata [ 'lastTrace' ] ; $ this -> regenerationTrace = $ metadata [ 'regenerationTrace' ] ; $ this -> requestsCount = $ metadata [ 'requestsCount' ] ; $ this -> fingerprint = $ metadata [ 'fingerprint' ] ; // values $ this -> values = $ values ; return true ; }
Loads session data from defined store.

@return bool
Loads session data from defined store .