function SessionRead($hash) { $data = false; $time = time() - 7200; if (!$this->_dbConnection->Execute($this->_commandCreator->SessionRead($hash, $time))) { return $data; } if ($this->_dbConnection->ResultCount() > 0) { $row = $this->_dbConnection->GetNextRecord(); if ($row) { $data = $row->sess_data; // $data = base64_decode($row->sess_data); } } else { if (!$this->_dbConnection->Execute($this->_commandCreator->SessionInsertNew($hash))) { return false; } } return $data; }