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);
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@ class Router
|
||||
* When disabled the router will stop execution when first route is found.
|
||||
* @var bool
|
||||
*/
|
||||
protected $renderMultipleRoutes = true;
|
||||
protected $renderMultipleRoutes = false;
|
||||
|
||||
/**
|
||||
* Router constructor.
|
||||
|
||||
Reference in New Issue
Block a user