X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fsession.php;h=355d77307ae34aeb4b7a6649782b5b9ac78f71a6;hp=d45062c7448dfff25203852e1a2212a7c0abc15b;hb=e5527fd38a6585c8466dc28d013f12d21eb7c07a;hpb=a18efdcd57ba91893f0958a457b5c58639b135c3 diff --git a/inc/session.php b/inc/session.php index d45062c744..355d77307a 100644 --- a/inc/session.php +++ b/inc/session.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -37,7 +37,7 @@ // Some security stuff... if (!defined('__SECURITY')) { - die(); + exit(); } // END - if // Is ext-sql_patches there and newer? @@ -50,16 +50,14 @@ if (isExtensionInstalledAndNewer('sql_patches', '0.5.3')) { } // END - if // Is a session id there? -if (session_id() == '') { +if (!isValidSession()) { // Start the session - $GLOBALS['valid_session'] = session_start(); + $GLOBALS['valid_session'] = session_start(); + $GLOBALS['isValidSession'] = TRUE; } // END - if // Load language file(s) loadLanguageFile(); -// Determine and set referral id -determineReferralId(); - // [EOF] ?>