we have implemented a custom target group condition based on cookie data.
It works fine when we add data and trigger a TargetGroupEvent. The Target group gets added to the user as it should. But when we remove cookie data and trigger the event the Targetgroup is not removed from the user.
If we restart the site the targetgroups that dont match the cookies are removed.
I found a workaround. By removing the targetgroup data in the session and then trigger the event i get the correct targetgroups but I guess this isn’t an optimal solution.
Do you have any suggestions how to solve this in a correct way?
Litium version: 7.2