added fix for garbage collection on Debian based systems

This commit is contained in:
Roland Gruber 2010-05-28 08:01:54 +00:00
parent c8fe819a02
commit 9c84da725b
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ function startSecureSession() {
if (strtolower(session_module_name()) == 'files') {
$sessionDir = dirname(__FILE__) . "/../sess";
session_save_path($sessionDir);
// enable garbage collection (fix for Debian based systems)
if (@ini_get("session.gc_probability") == 0) {
@ini_set("session.gc_probability", 1);
}
}
@session_start();
// check session id