Garbage collect sessions

This commit is contained in:
Latif Khalifa
2013-10-16 14:09:16 +02:00
parent 3616866206
commit ec396d7d9a
3 changed files with 9 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
<?php
define("NO_SESSION", 1);
define("SITE_ROOT", realpath(dirname(__file__)));
require_once SITE_ROOT . "/lib/init.php";
@@ -67,3 +68,5 @@ if ($nr)
$rp = $nr != 1 ? "reports" : "report";
IRCNotify::send("#SingularityViewer", "[CrashProcessor] $nr new $rp. http://crash.singularityviewer.org/");
}
Session::GC();