mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
[BUGFIX] Fixed SESSION not shutdown correctly when using redirect.
- Disabled multiple route rendering by default.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user