X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fsession.php;h=1849e2f9a8016f3e9d5729d232f2a0178e227a55;hb=3360f076d2251f554b2dfb420c18367af363ce2a;hp=46dd7e3913f8339919befcbe03e89bc6542f9e49;hpb=5f8c1a333627cd0145f778a6eebdb251f5bb40b6;p=mailer.git diff --git a/inc/session.php b/inc/session.php index 46dd7e3913..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] ?>