diff --git a/libraries/src/Session/Storage/JoomlaStorage.php b/libraries/src/Session/Storage/JoomlaStorage.php index 7311efc0b83cf..d24f41b5d12b5 100644 --- a/libraries/src/Session/Storage/JoomlaStorage.php +++ b/libraries/src/Session/Storage/JoomlaStorage.php @@ -63,7 +63,7 @@ public function __construct(Input $input, \SessionHandlerInterface $handler = nu 'use_trans_sid' => 0, ]; - if (!headers_sent()) + if (!headers_sent() && !$this->isActive()) { session_cache_limiter('none'); } @@ -229,7 +229,7 @@ public function set(string $name, $value = null) */ protected function setCookieParams() { - if (headers_sent()) + if (headers_sent() || $this->isActive()) { return; }