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(); }