diff --git a/lib/classes/session/redis.php b/lib/classes/session/redis.php index 8479859e23277..7f11fdb9f1c03 100644 --- a/lib/classes/session/redis.php +++ b/lib/classes/session/redis.php @@ -577,6 +577,7 @@ public function write(string $id, string $data): bool { #[\Override] public function get_session_by_sid(string $sid): \stdClass { + $this->init_redis_if_required(); $keys = ["id", "state", "sid", "userid", "sessdata", "timecreated", "timemodified", "firstip", "lastip"]; $sessiondata = $this->connection->hmget($this->sessionkeyprefix . $sid, $keys);