Commit bb7e8371 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) add session close

(cherry picked from commit 235169e2)
parent 20dab420
...@@ -40,6 +40,11 @@ if (empty($nocsrf)) { ...@@ -40,6 +40,11 @@ if (empty($nocsrf)) {
csrf_conf('expires', $timeout_minutes * 60); csrf_conf('expires', $timeout_minutes * 60);
} }
require_once('csrf/csrf-magic.php'); 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) function set_language($lang)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment