session_gc(); } /** * Returns whether this cron task should run now, because enough time * has passed since it was last run. */ public function should_run() { global $config; return $config['session_last_gc'] < time() - $config['session_gc']; } }