Project

General

Profile

Bug #14971 » class.tslib_feuserauth.php.diff

Administrator Admin, 2006-07-06 22:41

View differences:

/typo3/sysext/cms/tslib/class.tslib_feuserauth.php Fri Sep 19 13:15:49 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 (
'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/3)