diff --git a/src/SessionManager.php b/src/SessionManager.php index ef7d967a..152c0bae 100644 --- a/src/SessionManager.php +++ b/src/SessionManager.php @@ -194,7 +194,7 @@ protected function initializeValidatorChain() */ public function destroy(?array $options = null) { - if (! $this->sessionExists()) { + if (headers_sent() || ! $this->sessionExists()) { return; }