Replaced cookie management from ArrayList to HashMap.