From 9f4789c707591f21e09c5b9e51aec93ee7d0c986 Mon Sep 17 00:00:00 2001 From: Iain Kay Date: Thu, 11 Jul 2013 19:29:24 +0000 Subject: [PATCH] In order to read the cookie configuration from include/config/globa.inc.php the session must begin after this has been included. --- public/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/index.php b/public/index.php index dbb28f9a..ad58b9e0 100644 --- a/public/index.php +++ b/public/index.php @@ -24,13 +24,13 @@ define("BASEPATH", "./"); // Our security check define("SECURITY", 1); +// Include our configuration (holding defines for the requires) +if (!include_once(BASEPATH . 'include/config/global.inc.php')) die('Unable to load site configuration'); + // Start a session session_start(); $session_id = session_id(); -// Include our configuration (holding defines for the requires) -if (!include_once(BASEPATH . 'include/config/global.inc.php')) die('Unable to load site configuration'); - // Load Classes, they name defines the $ variable used // We include all needed files here, even though our templates could load them themself require_once(INCLUDE_DIR . '/autoloader.inc.php');