Last active
October 20, 2019 17:08
-
-
Save Pum-purum/42f42463d3cd291813b615db8f16c4da to your computer and use it in GitHub Desktop.
cookie bitrix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Bitrix\Main\Application; | |
use Bitrix\Main\Web\Cookie; | |
if(Application::getInstance()->getContext()->getRequest()->getCookie('FROMBUSINESS')){ | |
$cookie = new Cookie("FROMBUSINESS", ''); | |
Application::getInstance()->getContext()->getResponse()->addCookie($cookie); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment