Skip to content

Commit

Permalink
close session ASAP if active
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsn committed Oct 28, 2023
1 parent 7c63e51 commit cdda18d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/HotReloader/HotReloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ final class HotReloader
{
public function run(): void
{
if (session_status() === PHP_SESSION_ACTIVE) {
session_write_close();
}

ini_set('zlib.output_compression', 'Off');

header('Cache-Control: no-store');
Expand Down

0 comments on commit cdda18d

Please sign in to comment.