(legacy) add session close

This commit is contained in:
Ad Schellevis 2015-11-16 21:14:38 +00:00
parent 5cf5ef0c62
commit 235169e270

View File

@ -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)