[#2037] Ensure cookies are unique

see #2037 
Last occurence win