Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $publicCookieMetadata = $this->_cookieMetadataFactory->createPublicCookieMetadata()
- ->setDuration(2592000)
- ->setPath($this->_sessionManager->getCookiePath())
- ->setDomain($this->_sessionManager->getCookieDomain())
- ->setHttpOnly(false);
- $cookie_name = 'cookie'.$key;
- $this->_cookieManager->setPublicCookie($cookie_name,
- $key,
- $publicCookieMetadata
- );
Add Comment
Please, Sign In to add comment