Update security.php
This commit is contained in:
parent
0ecfe27a92
commit
a02efcd1dc
|
@ -642,11 +642,14 @@ if(!check_function_exists("check_redirect_origin")) {
|
||||||
// since 1.6 or above
|
// since 1.6 or above
|
||||||
if(!check_function_exists("start_isolated_session")) {
|
if(!check_function_exists("start_isolated_session")) {
|
||||||
function start_isolated_session() {
|
function start_isolated_session() {
|
||||||
$cwd = get_current_working_dir();
|
$config = get_config();
|
||||||
$session_dir = $cwd . "/storage/sandbox/sessions";
|
if(!array_key_equals("sandboxdisabled", $config, 1)) {
|
||||||
session_save_path($session_dir);
|
$cwd = get_current_working_dir();
|
||||||
@ini_set("session.save_path", $session_dir);
|
$session_dir = $cwd . "/storage/sandbox/sessions";
|
||||||
@ini_set("session.gc_probability", 1); // enable gc(gabage collection)
|
session_save_path($session_dir);
|
||||||
|
@ini_set("session.save_path", $session_dir);
|
||||||
|
@ini_set("session.gc_probability", 1); // enable gc(gabage collection)
|
||||||
|
}
|
||||||
session_start(); // enable $_SESSION
|
session_start(); // enable $_SESSION
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user