/**
* Read the data for a particular session identifier from the backend.
* This method should only be called internally by PHP via
* session_set_save_handler().
*
* @param string $id The session identifier.
*
* @return string The session data.
*/
public function read($id)
{
if (($result = $this->_storage->read($id)) == '') {
$this->_logger->log('Error retrieving session data (' . $id . ')', 'DEBUG');
} else {
$this->_logger->log('Read session data (' . $id . ')', 'DEBUG');
}
if (empty($this->_params['no_md5'])) {
$this->_sig = md5($result);
}
return $result;
}