From 54cb169132a79e83da7671c1b75513f3f929d522 Mon Sep 17 00:00:00 2001 From: Dave Goodwin Date: Sun, 29 Apr 2012 18:20:19 +0000 Subject: [PATCH] config.php - fix up to work better with moodle, I think git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@315 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641 --- config.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config.php b/config.php index 55f37ce355..d54bfa9c66 100644 --- a/config.php +++ b/config.php @@ -140,8 +140,9 @@ //$xerte_toolkits_site->authentication_method = 'Db'; //$xerte_toolkits_site->authentication_method = 'Static'; //$xerte_toolkits_site->authentication_method = "Moodle"; - - if($xerte_toolkits_site->authentication_method !== 'Moodle') { - session_start(); + + if(isset($_SESSION['integrate_with_moodle']) && $_SESSION['integrate_with_moodle'] == true) { + // skip session_start() } + session_start(); }