Project

General

Profile

Bug #52358 ยป typo3_src-4.5.30-cboltz--installtool-session-handling.diff

Workaround patch for install tool (for 4.5.30) - Christian Boltz, 2013-09-28 23:29

View differences:

typo3_src-4.5.30-cboltz/typo3/sysext/install/mod/class.tx_install_session.php 2013-09-28 22:47:20.000000000 +0200
t3lib_div::writeFile($sessionSavePath.'/.htaccess', 'Order deny, allow'."\n".'Deny from all'."\n");
$indexContent = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">';
$indexContent .= '<HTML><HEAD<TITLE></TITLE><META http-equiv=Refresh Content="0; Url=../../">';
$indexContent .= '</HEAD></HTML>';
t3lib_div::writeFile($sessionSavePath.'/index.html', $indexContent);
}
/*
// Register our "save" session handler
session_set_save_handler(
array($this, 'open'),
array($this, 'close'),
array($this, 'read'),
array($this, 'write'),
array($this, 'destroy'),
array($this, 'gc')
);
session_save_path($sessionSavePath);
session_name($this->cookieName);
ini_set('session.cookie_path', t3lib_div::getIndpEnv('TYPO3_SITE_PATH'));
*/
// Always call the garbage collector to clean up stale session files
ini_set('session.gc_probability', 100);
ini_set('session.gc_divisor', 100);
ini_set('session.gc_maxlifetime', $this->expireTimeInMinutes*2*60);
if (version_compare(phpversion(), '5.2', '<')) {
ini_set('session.cookie_httponly', TRUE);
    (1-1/1)