From 5769e14f1858b72a6ee4e5bf50930328d9fda655 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 11 Dec 2016 23:00:53 -0700 Subject: [PATCH] Update index.php --- index.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 60c11d0be7..f4acae583d 100644 --- a/index.php +++ b/index.php @@ -23,11 +23,12 @@ Contributor(s): Mark J. Crane */ -include "root.php"; +//include root + include "root.php"; // start the session ini_set("session.cookie_httponly", True); - session_start(); + if (!isset($_SESSION)) { session_start(); } //if config.php file does not exist then redirect to the install page if (file_exists($_SERVER["PROJECT_ROOT"]."/resources/config.php")) { @@ -79,4 +80,4 @@ include "root.php"; } } -?> \ No newline at end of file +?>