X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fsession.php;h=79428ddbba7ba2321db6fe1c8083c2fd8abd6bf3;hp=591cb1c4eea7cd076606943e592528ff1ecc8ae8;hb=9f6c30cc0e06098171d773d671292081ecee3d29;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e diff --git a/inc/session.php b/inc/session.php index 591cb1c4ee..79428ddbba 100644 --- a/inc/session.php +++ b/inc/session.php @@ -39,14 +39,18 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} +} // END - if -// Set session save path if set -if (getConfig('session_save_path') != '') { - // Please make sure this valid! - session_save_path(getConfig('session_save_path')); +// 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') != '') { + // Please make sure this valid! + session_save_path(getConfig('session_save_path')); + } // END - if } // END - if +// Is a session id there? if (session_id() == '') { // Start the session session_start(); @@ -67,9 +71,6 @@ if (isSessionVariableSet('userid')) { if (!isMember()) { // Then destroy the user id destroyUserSession(); - - // Kill userid - setUserId(0); } // END - if } // END - if