Guest User

Untitled

a guest
Dec 13th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. $publicCookieMetadata = $this->_cookieMetadataFactory->createPublicCookieMetadata()
  2. ->setDuration(2592000)
  3. ->setPath($this->_sessionManager->getCookiePath())
  4. ->setDomain($this->_sessionManager->getCookieDomain())
  5. ->setHttpOnly(false);
  6.  
  7. $cookie_name = 'cookie'.$key;
  8.  
  9. $this->_cookieManager->setPublicCookie($cookie_name,
  10. $key,
  11. $publicCookieMetadata
  12. );
Add Comment
Please, Sign In to add comment