Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```php
- $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
- $cookieManager = $objectManager->get('Magento\Framework\Stdlib\CookieManagerInterface');
- // set cookie value
- $cookieManager->setPublicCookie('key', 'value');
- //get cookie value
- $cookieManager->getCookie('key');
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement