X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fsession.php;h=d45062c7448dfff25203852e1a2212a7c0abc15b;hp=3e3ec38bbaa51d417b28545bb9705098290efca9;hb=a18efdcd57ba91893f0958a457b5c58639b135c3;hpb=f97a999e0737c0007ae9c3c26dfef49f75a175ac diff --git a/inc/session.php b/inc/session.php index 3e3ec38bba..d45062c744 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 referral id +determineReferralId(); -// +// [EOF] ?>