Project

General

Profile

Feature #20877 ยป 0011708.patch

Administrator Admin, 2009-08-13 16:49

View differences:

t3lib/stddb/tables.sql (Arbeitskopie)
ses_tstamp int(11) unsigned DEFAULT '0' NOT NULL,
ses_data longtext,
ses_backuserid int(11) NOT NULL default '0',
PRIMARY KEY (ses_id,ses_name)
PRIMARY KEY (ses_id,ses_name),
KEY ses_tstamp (ses_tstamp)
);
#
typo3/sysext/beuser/mod/index.php (Arbeitskopie)
$where_clause = 'ses_userid=u.uid';
$orderBy = 'u.username';
if (t3lib_div::testInt($GLOBALS['TYPO3_CONF_VARS']['BE']['sessionTimeout'])) {
$where_clause .= ' AND '.$GLOBALS['EXEC_TIME'].'<(ses_tstamp+'.$GLOBALS['TYPO3_CONF_VARS']['BE']['sessionTimeout'].')';
} else {
$timeout = intval($GLOBALS['TYPO3_CONF_VARS']['BE']['sessionTimeout']);
if ($timeout > 0) {
$where_clause .= ' AND '.$GLOBALS['EXEC_TIME'].'<(ses_tstamp+'.$timeout.')';
}
$timeout = intval($GLOBALS['TYPO3_CONF_VARS']['BE']['sessionTimeout']);
if ($timeout > 0) {
$where_clause .= ' AND ses_tstamp > ' . ($GLOBALS['EXEC_TIME'] - $timeout);
}
// Fetch active sessions of other users from storage:
$sessions = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows($select_fields,$from_table,$where_clause,'',$orderBy);
typo3/sysext/cms/ext_tables.sql (Arbeitskopie)
ses_tstamp int(11) unsigned DEFAULT '0' NOT NULL,
ses_data blob,
ses_permanent tinyint(1) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (ses_id,ses_name)
PRIMARY KEY (ses_id,ses_name),
KEY ses_tstamp (ses_tstamp)
) ENGINE=InnoDB;
    (1-1/1)