mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 10:35:27 +00:00
(legacy) add session close
This commit is contained in:
parent
5cf5ef0c62
commit
235169e270
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user