Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Commit 017bc5a

Browse files
author
or
committed
issue #97 modification of session timeout mechanism
fixed unexisted session direcrory behavior.
1 parent 57a5ebd commit 017bc5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config.sample.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
// this defines, where session files will be stored.
1515
// it is important in this case: http://php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime
1616
$currentSessionPath = ini_get('session.save_path');
17-
$subPath = 'rockmongo';
18-
ini_set('session.save_path', $currentSessionPath . DIRECTORY_SEPARATOR . $subPath);
17+
$save_path = $currentSessionPath . DIRECTORY_SEPARATOR . 'rockmongo';
18+
if (!is_dir($save_path)) mkdir($save_path, 0777, true);
19+
ini_set('session.save_path', $save_path);
1920

2021
$MONGO = array();
2122
$MONGO["features"]["log_query"] = "on";//log queries

0 commit comments

Comments
 (0)