X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fsession.php;h=f13e3dd69a5037969513e6c66c165030bd2e7d19;hp=7cf0c603734e7d0e5a45a7b55bb0bb2355348b64;hb=e8ca54fe91872ab95a6ffdc4f1268bf18889021d;hpb=4c83f0cc7459cad9ec9c1c68963f5365155ee935 diff --git a/inc/session.php b/inc/session.php index 7cf0c60373..f13e3dd69a 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] ?>