summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index b3496a09e..2face6777 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -144,6 +144,9 @@ function common_ensure_session()
$c = $_COOKIE[session_name()];
}
if (!common_have_session()) {
+ if (common_config('sessions', 'handle')) {
+ Session::setSaveHandler();
+ }
@session_start();
if (!isset($_SESSION['started'])) {
$_SESSION['started'] = time();