Skip to content

Commit cdda18d

Browse files
committed
close session ASAP if active
1 parent 7c63e51 commit cdda18d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

system/HotReloader/HotReloader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ final class HotReloader
1818
{
1919
public function run(): void
2020
{
21+
if (session_status() === PHP_SESSION_ACTIVE) {
22+
session_write_close();
23+
}
24+
2125
ini_set('zlib.output_compression', 'Off');
2226

2327
header('Cache-Control: no-store');

0 commit comments

Comments
 (0)