X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fsession.php;h=355d77307ae34aeb4b7a6649782b5b9ac78f71a6;hb=8862a2901206c02479261c49de78609ffb2ce9c2;hp=e9abd0e7a28d12b057c30a5bfb547a0a6c410bac;hpb=f4d7dc336fde4cebc47701026a94d193f77854a1;p=mailer.git diff --git a/inc/session.php b/inc/session.php index e9abd0e7a2..355d77307a 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 - 2013 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 (!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 referal id -determineReferalId(); - // [EOF] ?>