A
A
Alexander2019-12-25 10:38:28
1C-Bitrix
Alexander, 2019-12-25 10:38:28

Why can't get the Cookie value?

Neither \Bitrix\Main\Application::getInstance()->getContext()->getRequest()->getCookie('PHPSESSID') nor $APPLICATION->get_cookie("PHPSESSID") return anything.
More precisely, the first returns NULL and the second an empty string.
For any cookies. Everything is different with the $_COOKIE array - it has values.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question