In order to read the cookie configuration from include/config/globa.inc.php the session must begin after this has been included.
This commit is contained in:
parent
d2bbc366d1
commit
9f4789c707
@ -24,13 +24,13 @@ define("BASEPATH", "./");
|
|||||||
// Our security check
|
// Our security check
|
||||||
define("SECURITY", 1);
|
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
|
// Start a session
|
||||||
session_start();
|
session_start();
|
||||||
$session_id = session_id();
|
$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
|
// Load Classes, they name defines the $ variable used
|
||||||
// We include all needed files here, even though our templates could load them themself
|
// We include all needed files here, even though our templates could load them themself
|
||||||
require_once(INCLUDE_DIR . '/autoloader.inc.php');
|
require_once(INCLUDE_DIR . '/autoloader.inc.php');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user