X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fsession.php;h=e9abd0e7a28d12b057c30a5bfb547a0a6c410bac;hb=6989412ec2be23ffb4febbba8924db25ce1ac113;hp=f26fc26296aafaab3595ee674e080494a706a129;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60;p=mailer.git diff --git a/inc/session.php b/inc/session.php index f26fc26296..e9abd0e7a2 100644 --- a/inc/session.php +++ b/inc/session.php @@ -14,10 +14,9 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -44,7 +43,7 @@ if (!defined('__SECURITY')) { // Is ext-sql_patches there and newer? if (isExtensionInstalledAndNewer('sql_patches', '0.5.3')) { // Set session save path if set - if (getConfig('session_save_path') != '') { + if ((isConfigEntrySet('session_save_path')) && (getConfig('session_save_path') != '')) { // Please make sure this valid! session_save_path(getConfig('session_save_path')); } // END - if @@ -53,7 +52,7 @@ if (isExtensionInstalledAndNewer('sql_patches', '0.5.3')) { // Is a session id there? if (session_id() == '') { // Start the session - session_start(); + $GLOBALS['valid_session'] = session_start(); } // END - if // Load language file(s) @@ -62,17 +61,5 @@ loadLanguageFile(); // Determine and set referal id determineReferalId(); -// Transfer userid from session and validate it -if (isSessionVariableSet('userid')) { - // Get it secured from session - setMemberId(getSession('userid')); - - // Is it valid? - if (!isMember()) { - // Then destroy the user id - destroyMemberSession(); - } // END - if -} // END - if - // [EOF] ?>