X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fsession.php;h=1849e2f9a8016f3e9d5729d232f2a0178e227a55;hb=45799353e6886efecaa6fe169848321a81a08c6e;hp=7cf0c603734e7d0e5a45a7b55bb0bb2355348b64;hpb=4c83f0cc7459cad9ec9c1c68963f5365155ee935;p=mailer.git diff --git a/inc/session.php b/inc/session.php index 7cf0c60373..1849e2f9a8 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 (!isSessionValid()) { + // Start the session + $GLOBALS['valid_session'] = session_start(); + $GLOBALS['isSessionValid'] = TRUE; } // END - if -//* DEBUG: */ print("
".print_r($_SESSION, true)."
"); +// Load language file(s) +loadLanguageFile(); -// +// [EOF] ?>