exit on redirect

This commit is contained in:
Bruno Rybársky 2024-02-02 16:37:15 +01:00
parent ac6ceb77a1
commit 2edc604327

@ -12,7 +12,8 @@ $routerConfig = array();
$routerRequest = array(); $routerRequest = array();
loadRouterConfig(); loadRouterConfig();
if(initRouter()) { $canRender = initRouter();
if($canRender) {
/** @noinspection PhpArrayIsAlwaysEmptyInspection */ /** @noinspection PhpArrayIsAlwaysEmptyInspection */
session_set_cookie_params(0, '/', "." . $routerRequest["domain"] . "." . $routerRequest["tld"], true, true); session_set_cookie_params(0, '/', "." . $routerRequest["domain"] . "." . $routerRequest["tld"], true, true);
session_start(); session_start();