Answer the question
In order to leave comments, you need to log in
Why is the footer.php of Bitrix executed several times?
If we add this code to the footer*, and then look at the paths in cookies, we will see that two or three paths were recorded, which means the code was executed several times.
<?
$curPage = $APPLICATION->GetCurPage(false);
$cookiePath = unserialize($_COOKIE['pathBX']);
$cookiePath[] = $curPage;
setcookie("pathBX", serialize($cookiePath), time() + 86400, '/');
?>
Answer the question
In order to leave comments, you need to log in
You have a crookedly configured web server, nginx should intercept requests for static
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question