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

Commit eda0878

Browse files
author
or
committed
Merge remote-tracking branch 'origin/fix-sessions'
2 parents 78d863a + 017bc5a commit eda0878

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)