added fix for garbage collection on Debian based systems
This commit is contained in:
parent
c8fe819a02
commit
9c84da725b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue