Refactored cookie data to hashset (instead of hashmap).