In case of multiple call to isActive() on a flag having percentage condition, there is multiple call to setcookie function, which can cause error because of too big response header (each Set-Cookie: ... will be in the response header).
To avoid this, you can, for example, add something like this: $this->request->cookies->set($config['cookie'], $value); after setcookie() function... Not very beautiful, but it works ;-)
Thx.
In case of multiple call to
isActive()on a flag havingpercentagecondition, there is multiple call tosetcookiefunction, which can cause error because of too big response header (eachSet-Cookie: ...will be in the response header).To avoid this, you can, for example, add something like this:
$this->request->cookies->set($config['cookie'], $value);aftersetcookie()function... Not very beautiful, but it works ;-)Thx.