]> git.mxchange.org Git - mailer.git/blobdiff - inc/session.php
Better only check on daily reset
[mailer.git] / inc / session.php
index 49c0ab12193498d8a0ed2f76312ead2f09546578..1849e2f9a8016f3e9d5729d232f2a0178e227a55 100644 (file)
@@ -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]
 ?>