Browse Source

[Frontend] Cookies : adaptations

feature/export_comptable
Guillaume 4 years ago
parent
commit
6b550f9b16
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      ShopBundle/Services/UserUtils.php

+ 1
- 3
ShopBundle/Services/UserUtils.php View File



public function setCookieVisitor($response, $cookie) public function setCookieVisitor($response, $cookie)
{ {
if($this->cookieChecker->isCategoryAllowedByUser('site')) {
$response->headers->setCookie(Cookie::create($this->getCookieNameVisitor(), $this->cryptCookie($cookie), 0, '/', $this->utils->getCookieDomain()));
}
$response->headers->setCookie(Cookie::create($this->getCookieNameVisitor(), $this->cryptCookie($cookie), 0, '/', $this->utils->getCookieDomain()));
} }


public function getVisitor($cookie) public function getVisitor($cookie)

Loading…
Cancel
Save