Project

General

Profile

Bug #19286 » class.tslib_feuserauth2.php.diff

Administrator Admin, 2008-09-19 14:55

View differences:

W:/www.aida.de/aop/typo3/sysext/cms/tslib/class.tslib_feuserauth.php Fri Sep 19 14:50:24 2008
$dbres = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'fe_session_data', 'hash='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->id, 'fe_session_data'));
if ($sesDataRow = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($dbres)) {
$this->sesData = unserialize($sesDataRow['content']);
} else {
//@ NETRESEARCH
//Leere Session schreiben
$insertFields = array (
'hash' => $this->id,
'content' => serialize($this->sesData),
'tstamp' => time()
);
$GLOBALS['TYPO3_DB']->exec_INSERTquery('fe_session_data', $insertFields);
}
}
// delete old data:
......
if ($this->sesData_change) {
if ($this->id) {
$insertFields = array (
'hash' => $this->id,
'content' => serialize($this->sesData),
'tstamp' => time()
);
$GLOBALS['TYPO3_DB']->exec_DELETEquery('fe_session_data', 'hash='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->id, 'fe_session_data'));
$GLOBALS['TYPO3_DB']->exec_INSERTquery('fe_session_data', $insertFields);
//@ NETRESEARCH
//Update Statement ist sicherer als session l?schen und neu einf?gen
$GLOBALS['TYPO3_DB']->exec_UPDATEquery('fe_session_data', 'hash='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->id, 'fe_session_data'), $insertFields);
}
}
}
(2-2/2)