aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-23 12:52:49 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-23 12:52:49 +0000
commit1c41df46a1d678b2d1ef2bdc0c71a5d5288055b2 (patch)
treec7cf30253c24532b39889feab4812369fe24c275
parent0dc6eba6f2795cfb67c4513bc511aacf47301202 (diff)
downloadelgg-1c41df46a1d678b2d1ef2bdc0c71a5d5288055b2.tar.gz
elgg-1c41df46a1d678b2d1ef2bdc0c71a5d5288055b2.tar.bz2
Refs #562: Configuration flag to disable database sessions.
git-svn-id: https://code.elgg.org/elgg/trunk@2605 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/sessions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index 9336f0059..e3c89d89f 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -379,7 +379,8 @@
// Use database for sessions
$DB_PREFIX = $CONFIG->dbprefix; // HACK to allow access to prefix after object distruction
- session_set_save_handler("__elgg_session_open", "__elgg_session_close", "__elgg_session_read", "__elgg_session_write", "__elgg_session_destroy", "__elgg_session_gc");
+ if ((!isset($CONFIG->use_file_sessions)))
+ session_set_save_handler("__elgg_session_open", "__elgg_session_close", "__elgg_session_read", "__elgg_session_write", "__elgg_session_destroy", "__elgg_session_gc");
session_name('Elgg');
session_start();