From 235169e270132fcc4fc28750726b2e56ff86ac99 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 16 Nov 2015 21:14:38 +0000 Subject: [PATCH] (legacy) add session close --- src/www/guiconfig.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/www/guiconfig.inc b/src/www/guiconfig.inc index b5ed761b5..2e9f8fdb8 100644 --- a/src/www/guiconfig.inc +++ b/src/www/guiconfig.inc @@ -41,6 +41,11 @@ if (empty($nocsrf)) { csrf_conf('expires', $timeout_minutes * 60); } require_once('csrf/csrf-magic.php'); + + // make sure the session is closed after executing csrf-magic + if (session_status() != PHP_SESSION_NONE) { + session_write_close(); + } } function set_language($lang)