mirror of
https://github.com/daledavies/jump.git
synced 2026-05-06 20:55:59 +02:00
Close session early to avoid session lock blocking other scripts
This commit is contained in:
@@ -45,6 +45,8 @@ abstract class AbstractPage {
|
||||
if (!$csrfsection->offsetExists('token')){
|
||||
$csrfsection->set('token', bin2hex(random_bytes(32)));
|
||||
}
|
||||
// Close the session as soon as possible to avoid session lock blocking other scripts.
|
||||
$this->session->close();
|
||||
}
|
||||
|
||||
abstract protected function render_content(): string;
|
||||
|
||||
Reference in New Issue
Block a user