Example #1
0
 /**
  * Check if cookie has to be protected.
  *
  * @param string $cookie
  * @return bool
  */
 protected function isProtected($cookie)
 {
     if (in_array($cookie, $this->httpConfig->excludedCookies())) {
         //Excluded
         return false;
     }
     return $this->httpConfig->cookieProtection() != HttpConfig::COOKIE_UNPROTECTED;
 }