diff --git a/system/Session/Handlers/MemcachedHandler.php b/system/Session/Handlers/MemcachedHandler.php index c40a22c2b42a..d5c9c110c246 100644 --- a/system/Session/Handlers/MemcachedHandler.php +++ b/system/Session/Handlers/MemcachedHandler.php @@ -94,6 +94,11 @@ public function __construct(BaseConfig $config, string $ipAddress) { $this->keyPrefix .= $this->ipAddress . ':'; } + + if(!empty($this->keyPrefix)) + { + ini_set('memcached.sess_prefix', $this->keyPrefix); + } $this->sessionExpiration = $config->sessionExpiration; } @@ -184,7 +189,7 @@ public function read($sessionID) return $session_data; } - return false; + return ''; } //-------------------------------------------------------------------- diff --git a/system/Session/Session.php b/system/Session/Session.php index f1e09e0d1984..c1d550af4489 100644 --- a/system/Session/Session.php +++ b/system/Session/Session.php @@ -303,6 +303,11 @@ protected function configure() { ini_set('session.gc_maxlifetime', (int) $this->sessionExpiration); } + + if(!empty($this->sessionSavePath)) + { + ini_set('session.save_path', $this->sessionSavePath); + } // Security is king ini_set('session.use_trans_sid', 0);