aboutsummaryrefslogtreecommitdiff
path: root/lib/session/CacheSessionHandler.php
diff options
context:
space:
mode:
authorAndré Noack <noack@data-quest.de>2025-04-14 09:08:41 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-04-14 09:08:41 +0000
commit78091cc545ea110f4a626b3ea6454a4918a01d05 (patch)
tree9d08398dd650796b5728e0ea697c3b2aec11be50 /lib/session/CacheSessionHandler.php
parent118a3225185cff99dc2036db4b635b76741423fb (diff)
Resolve #5499 "Media Proy: $cache must not be accessed before initialization"
Closes #5499 Merge request studip/studip!4126
Diffstat (limited to 'lib/session/CacheSessionHandler.php')
-rw-r--r--lib/session/CacheSessionHandler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/session/CacheSessionHandler.php b/lib/session/CacheSessionHandler.php
index 0418e47..78e0550 100644
--- a/lib/session/CacheSessionHandler.php
+++ b/lib/session/CacheSessionHandler.php
@@ -34,6 +34,7 @@ class CacheSessionHandler implements
if ($session_lifetime) {
$this->session_lifetime = $session_lifetime;
}
+ $this->cache = Factory::getCache();
}
public function close(): bool
@@ -55,7 +56,6 @@ class CacheSessionHandler implements
public function open(string $path, string $name): bool
{
- $this->cache = Factory::getCache();
return true;
}