src/Session.php
public function sessionhandler_gc($maxlifetime) {
		$files = scandir($this->save_path);
		foreach ($files as $file) {
			if ($file{0} === '.') continue;

			if (filemtime($this->save_path . $file) < time() - $maxlifetime) {
				unlink($this->save_path . $file);
			}
		}
		return true;
	}
public function sessionhandler_gc($maxlifetime) {
		$files = scandir($this->save_path);
		foreach ($files as $file) {
			if ($file{0} === '.') continue;

			if (filemtime($this->save_path . $file) < time() - $maxlifetime) {
				unlink($this->save_path . $file);
			}
		}
		return true;
	}
public function sessionhandler_gc ( $ maxlifetime ) { $ files = scandir ( $ this -> save_path ) ; foreach ( $ files as $ file ) { if ( $ file { 0 } === '.' ) continue ; if ( filemtime ( $ this -> save_path . $ file ) < time ( ) - $ maxlifetime ) { unlink ( $ this -> save_path . $ file ) ; } } return true ; }
Cleanup old sessions.
@param string $maxlifetime	Sessions that have not updated for the last maxlifetime seconds will be removed.
@return boolean The return value (usually `true` on success, `false` on failure). Note this value is returned internally to PHP for processing.
@hidden
Cleanup old sessions .