private function read()
    {
        $this->lock();

        $data = '';

        rewind($this->handle);

        $data = trim(stream_get_contents($this->handle));

        if ($data !== '') {
            $this->data = unserialize($data);
            $data = null;
        }

        flock($this->handle, LOCK_UN);

        $this->iterator = new \ArrayIterator($this->data);
    }
private function read()
    {
        $this->lock();

        $data = '';

        rewind($this->handle);

        $data = trim(stream_get_contents($this->handle));

        if ($data !== '') {
            $this->data = unserialize($data);
            $data = null;
        }

        flock($this->handle, LOCK_UN);

        $this->iterator = new \ArrayIterator($this->data);
    }
private function read ( ) { $ this -> lock ( ) ; $ data = '' ; rewind ( $ this -> handle ) ; $ data = trim ( stream_get_contents ( $ this -> handle ) ) ; if ( $ data !== '' ) { $ this -> data = unserialize ( $ data ) ; $ data = null ; } flock ( $ this -> handle , LOCK_UN ) ; $ this -> iterator = new \ ArrayIterator ( $ this -> data ) ; }
Read session file

@return void
Read session file