$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');
Last active
January 18, 2020 10:33
-
-
Save mborodov/251b2922603468d0583358a144e3d98a to your computer and use it in GitHub Desktop.
Magento 2 Cookies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Working On this code but how to update cookie per value