[BUGFIX] Fixed SESSION not shutdown correctly when using redirect.

- Disabled multiple route rendering by default.
This commit is contained in:
sessingo
2023-03-30 16:15:06 +02:00
parent 8be42ca1a6
commit c622ef97b0
3 changed files with 9 additions and 5 deletions
+3
View File
@@ -39,6 +39,9 @@ class Response
$this->httpCode($httpCode);
}
// Gracefully end session (avoid any changes being lost)
session_write_close();
$this->header('location: ' . $url);
exit(0);
}