X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fsession.php;h=e9abd0e7a28d12b057c30a5bfb547a0a6c410bac;hb=e68f2f7b0a55fa31eb7ce5baf844dca40f11abea;hp=21f8580878fc5f4bc41008f967bb2546ea13b0dd;hpb=508228c85fba8448d00865b1639cb8cd7a69e457;p=mailer.git diff --git a/inc/session.php b/inc/session.php index 21f8580878..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] ?>