X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fsession.php;h=1849e2f9a8016f3e9d5729d232f2a0178e227a55;hb=6ab597cf6eeb82241f57ca7d13871338dbb9bcaa;hp=49c0ab12193498d8a0ed2f76312ead2f09546578;hpb=63f159414369b5ea19a8ca75d8cd8033c45d8341;p=mailer.git diff --git a/inc/session.php b/inc/session.php index 49c0ab1219..1849e2f9a8 100644 --- a/inc/session.php +++ b/inc/session.php @@ -50,16 +50,14 @@ if (isExtensionInstalledAndNewer('sql_patches', '0.5.3')) { } // END - if // Is a session id there? -if (session_id() == '') { +if (!isSessionValid()) { // Start the session - $GLOBALS['valid_session'] = session_start(); + $GLOBALS['valid_session'] = session_start(); + $GLOBALS['isSessionValid'] = TRUE; } // END - if // Load language file(s) loadLanguageFile(); -// Determine and set referral id -determineReferralId(); - // [EOF] ?>