I am trying to install an additional cookie for the user, but the cookie is not installed, I checked it on another site under the same conditions, then all the rules are set and read. What could be the problem ? Even such a simple code does not work.
<?require_once($_SERVER['DOCUMENT_ROOT'] . "/bitrix/modules/main/include/prolog_before.php"); $APPLICATION->set_cookie("USER_CITY","city"); echo "<pre>"; print_r($_COOKIE); echo "</pre>"; and in the array with cookies there are no cookies with the key I need, tell me how you can solve this problem?
and the strange thing is that even through <? setcookie('USER','asdas');?> <? setcookie('USER','asdas');?> do not put a cookie, the site has several aliases, as long as there are no thoughts what could be wrong ...