0011302.patch

Administrator Admin, 2009-06-08 17:36

Download (1.24 KB)

View differences:

typo3/sysext/cms/tslib/class.tslib_feuserauth.php (Arbeitskopie)
394 394
					'content' => serialize($this->sesData),
395 395
					'tstamp' => time()
396 396
				);
397
				$GLOBALS['TYPO3_DB']->exec_DELETEquery('fe_session_data', 'hash='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->id, 'fe_session_data'));
397
				$this->removeSessionData();
398 398
				$GLOBALS['TYPO3_DB']->exec_INSERTquery('fe_session_data', $insertFields);
399 399
			}
400 400
		}
401 401
	}
402 402

  
403 403
	/**
404
	 * Removes data of the current session.
405
	 *
406
	 * @return	void
407
	 */
408
	public function removeSessionData() {
409
		$GLOBALS['TYPO3_DB']->exec_DELETEquery(
410
			'fe_session_data',
411
			'hash=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this->id, 'fe_session_data')
412
		);
413
	}
414

  
415
	/**
404 416
	 * 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)
405 417
	 *
406 418
	 * @param	string		Session data type; Either "user" (persistent, bound to fe_users profile) or "ses" (temporary, bound to current session cookie)