diff --git a/system/src/Grav/Common/Grav.php b/system/src/Grav/Common/Grav.php index 341a54fda..c04d4f784 100644 --- a/system/src/Grav/Common/Grav.php +++ b/system/src/Grav/Common/Grav.php @@ -198,6 +198,11 @@ class Grav extends Container { /** @var Uri $uri */ $uri = $this['uri']; + + if (isset($this['session'])) { + $this['session']->close(); + } + header("Location: " . rtrim($uri->rootUrl(), '/') .'/'. trim($route, '/'), true, $code); exit(); }