Bug #21384 ยป 12371.diff
typo3/sysext/install/mod/class.tx_install_session.php (Arbeitskopie) | ||
---|---|---|
*
|
||
* @param integer The setting of session.gc_maxlifetime
|
||
*
|
||
* @return string
|
||
* @return boolean
|
||
*/
|
||
public function gc($maxLifeTime) {
|
||
$sessionSavePath = $this->getSessionSavePath();
|
||
foreach (glob($sessionSavePath . '/hash_*') as $filename) {
|
||
$files = glob($sessionSavePath . '/hash_*');
|
||
if (!is_array($files)) {
|
||
return TRUE;
|
||
}
|
||
foreach ($files as $filename) {
|
||
if (filemtime($filename) + ($this->expireTimeInMinutes*60) < time()) {
|
||
@unlink($filename);
|
||
}
|