aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-04-24 22:13:44 +0200
committerpiernov <piernov@piernov.org>2016-04-24 22:13:54 +0200
commitf2c007680664004a0745d14ee375958ce4794330 (patch)
treed2787ca54c78618f61b309c580e9809e354188a4
parente82fa2d62a1f0a6d0496c54425633042d972eb83 (diff)
downloadcandybox-f2c007680664004a0745d14ee375958ce4794330.tar.gz
candybox-f2c007680664004a0745d14ee375958ce4794330.tar.bz2
candybox-f2c007680664004a0745d14ee375958ce4794330.tar.xz
candybox-f2c007680664004a0745d14ee375958ce4794330.zip
Move session_start() after all requires (needed for classes to work correctly in $_SESSION)
-rw-r--r--craftmine.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/craftmine.php b/craftmine.php
index 4582f4e..c5f09be 100644
--- a/craftmine.php
+++ b/craftmine.php
@@ -1,9 +1,10 @@
<?php
-session_start();
require_once("inc/mine.inc");
require_once("inc/shop.inc");
+session_start(); // Must be placed *BEFORE* $_SESSION is actually used and *AFTER* all classes are imported
+
/**
* Indique au client une message requete.
*/