X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fsession.php;h=e9abd0e7a28d12b057c30a5bfb547a0a6c410bac;hp=a1405c70812df977fc02df9140c5bf7c4300df86;hb=2379934be6a196a54f4155bb8e24c49b20736969;hpb=fb7120ffa230b62b54895bcf95952e1cf30f8594 diff --git a/inc/session.php b/inc/session.php index a1405c7081..e9abd0e7a2 100644 --- a/inc/session.php +++ b/inc/session.php @@ -1,7 +1,7 @@ 0) { - // Session variables accepted! - define('__COOKIES', true); - } else { - // Cookies rejected! - define('__COOKIES', false); - } +// Is a session id there? +if (session_id() == '') { + // Start the session + $GLOBALS['valid_session'] = session_start(); } // END - if -//* DEBUG: */ print("
".print_r($_SESSION, true)."
"); +// Load language file(s) +loadLanguageFile(); + +// Determine and set referal id +determineReferalId(); -// +// [EOF] ?>