X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fsession.php;h=355d77307ae34aeb4b7a6649782b5b9ac78f71a6;hp=37f988dd229cc3ed7f8639f868645aa8b09a30b5;hb=e5527fd38a6585c8466dc28d013f12d21eb7c07a;hpb=397eb5dee2611cfaa1ff494d73e6785b88109cd6 diff --git a/inc/session.php b/inc/session.php index 37f988dd22..355d77307a 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 (!isValidSession()) { + // Start the session + $GLOBALS['valid_session'] = session_start(); + $GLOBALS['isValidSession'] = TRUE; } // END - if -//* DEBUG: */ print("
".print_r($_SESSION, true)."
"); +// Load language file(s) +loadLanguageFile(); -// +// [EOF] ?>