X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fsession.php;h=d45062c7448dfff25203852e1a2212a7c0abc15b;hb=64eecfb13d8618ddcf0e9d53920a21b0401b3971;hp=d48a53441934e718a1f5621de945c718947550dc;hpb=a84b517e5ce0d1601ca09082aad89f9b673bc202;p=mailer.git diff --git a/inc/session.php b/inc/session.php index d48a534419..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] ?>