public function extractData($sessionRecord = [], $unserialize = false) {
        $data = isset($sessionRecord[$this->dataKey]) ? $sessionRecord[$this->dataKey] : [];
        return $unserialize && is_string($data) ? $this->unserializeData($data) : $data;
    }
public function extractData($sessionRecord = [], $unserialize = false) {
        $data = isset($sessionRecord[$this->dataKey]) ? $sessionRecord[$this->dataKey] : [];
        return $unserialize && is_string($data) ? $this->unserializeData($data) : $data;
    }
public function extractData ( $ sessionRecord = [ ] , $ unserialize = false ) { $ data = isset ( $ sessionRecord [ $ this -> dataKey ] ) ? $ sessionRecord [ $ this -> dataKey ] : [ ] ; return $ unserialize && is_string ( $ data ) ? $ this -> unserializeData ( $ data ) : $ data ; }
Extract session data from record
@param array $sessionRecord
@param bool  $unserialize
@return array
Extract session data from record