X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fsession.php;h=1849e2f9a8016f3e9d5729d232f2a0178e227a55;hb=fb09ea805dbbe3eb18cf8257f16d15f211cfd1e3;hp=e9abd0e7a28d12b057c30a5bfb547a0a6c410bac;hpb=f4d7dc336fde4cebc47701026a94d193f77854a1;p=mailer.git diff --git a/inc/session.php b/inc/session.php index e9abd0e7a2..1849e2f9a8 100644 --- a/inc/session.php +++ b/inc/session.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -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 (!isSessionValid()) { // Start the session - $GLOBALS['valid_session'] = session_start(); + $GLOBALS['valid_session'] = session_start(); + $GLOBALS['isSessionValid'] = TRUE; } // END - if // Load language file(s) loadLanguageFile(); -// Determine and set referal id -determineReferalId(); - // [EOF] ?>