X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fsession.php;h=355d77307ae34aeb4b7a6649782b5b9ac78f71a6;hb=8862a2901206c02479261c49de78609ffb2ce9c2;hp=cc2d2f3f69cf2cd2ad08cf61f80ad51334de830a;hpb=46f2e389417a40f1029612b58cb285416ccae7a5;p=mailer.git diff --git a/inc/session.php b/inc/session.php index cc2d2f3f69..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] ?>