mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 22:06:43 +02:00
Use session class in shutdown
This commit is contained in:
@@ -257,7 +257,10 @@ class Grav extends Container
|
||||
if($this['config']->get('system.debugger.shutdown.close_connection')) {
|
||||
set_time_limit(0);
|
||||
ignore_user_abort(true);
|
||||
session_write_close();
|
||||
|
||||
if (isset($this['session'])) {
|
||||
$this['session']->close();
|
||||
}
|
||||
|
||||
header('Content-length: ' . ob_get_length());
|
||||
header("Connection: close\r\n");
|
||||
|
||||
Reference in New Issue
Block a user