From deffc7d99258167d169108a24130df45396f140a Mon Sep 17 00:00:00 2001 From: William Desportes Date: Wed, 28 Apr 2021 18:10:06 +0200 Subject: [PATCH] Simplify always true condition Ref: cafd1540e4a5bb2a381661ca08d2b523b005e7ad Ref: #13392 Signed-off-by: William Desportes --- libraries/classes/Session.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/classes/Session.php b/libraries/classes/Session.php index 32bb5bedd5..add4327a9d 100644 --- a/libraries/classes/Session.php +++ b/libraries/classes/Session.php @@ -147,11 +147,9 @@ class Session // Ignore errors as this might have been destroyed in other // request meanwhile @session_destroy(); - } elseif (function_exists('session_abort')) { - // PHP 5.6 and newer - session_abort(); } else { - session_write_close(); + // do not use session_write_close, see issue #13392 + session_abort(); } }