Percentage toggle condition improvement
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.
Hey,
thanks for you comment. I will have a look at it. Had never seen it is failing but you might be right. Do you need an improvement in a short time? Only for personal prioritizing 😉
Greets
Hello,
I don't need an improvement in short time, I created a custom Percentage condition meanwhile...
Thank you.