From 1c41df46a1d678b2d1ef2bdc0c71a5d5288055b2 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 23 Jan 2009 12:52:49 +0000 Subject: Refs #562: Configuration flag to disable database sessions. git-svn-id: https://code.elgg.org/elgg/trunk@2605 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/sessions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine') 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(); -- cgit v1.2.3