Feature #20597 ยป 0011302.patch
typo3/sysext/cms/tslib/class.tslib_feuserauth.php (Arbeitskopie) | ||
---|---|---|
'content' => serialize($this->sesData),
|
||
'tstamp' => time()
|
||
);
|
||
$GLOBALS['TYPO3_DB']->exec_DELETEquery('fe_session_data', 'hash='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->id, 'fe_session_data'));
|
||
$this->removeSessionData();
|
||
$GLOBALS['TYPO3_DB']->exec_INSERTquery('fe_session_data', $insertFields);
|
||
}
|
||
}
|
||
}
|
||
/**
|
||
* Removes data of the current session.
|
||
*
|
||
* @return void
|
||
*/
|
||
public function removeSessionData() {
|
||
$GLOBALS['TYPO3_DB']->exec_DELETEquery(
|
||
'fe_session_data',
|
||
'hash=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this->id, 'fe_session_data')
|
||
);
|
||
}
|
||
/**
|
||
* Returns session data for the fe_user; Either persistent data following the fe_users uid/profile (requires login) or current-session based (not available when browse is closed, but does not require login)
|
||
*
|
||
* @param string Session data type; Either "user" (persistent, bound to fe_users profile) or "ses" (temporary, bound to current session cookie)
|