X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fsession.php;h=b3f6f883ff6729bf0ab75fead0a02b4aae9b64bf;hp=cc2d2f3f69cf2cd2ad08cf61f80ad51334de830a;hb=ec9f020e34a9f2029a2ea0969564dda015beca8a;hpb=46f2e389417a40f1029612b58cb285416ccae7a5 diff --git a/inc/session.php b/inc/session.php index cc2d2f3f69..b3f6f883ff 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] ?>