diff --git a/system/Session/Handlers/RedisHandler.php b/system/Session/Handlers/RedisHandler.php index a6cce214f6d3..0ce94ce80791 100644 --- a/system/Session/Handlers/RedisHandler.php +++ b/system/Session/Handlers/RedisHandler.php @@ -273,7 +273,7 @@ public function write($id, $data): bool $this->redis->expire($this->lockKey, 300); if ($this->fingerprint !== ($fingerprint = md5($data)) || $this->keyExists === false) { - if ($this->redis->set($this->keyPrefix . $id, $data, $this->sessionExpiration)) { + if ($this->redis->set($this->keyPrefix . $id, $data, ['ex' => $this->sessionExpiration])) { $this->fingerprint = $fingerprint; $this->keyExists = true;