Add session close before redirect

This commit is contained in:
Matias Griese
2014-10-08 18:59:32 +03:00
parent fdf2884f97
commit 2f4c32e682

View File

@@ -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();
}