Commit 235169e2 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) add session close

parent 5cf5ef0c
...@@ -41,6 +41,11 @@ if (empty($nocsrf)) { ...@@ -41,6 +41,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