The affiliate cookie works on the basis of Last Referrer. This means the last affiliate link that the customer clicks will store the affiliate’s ID. The affiliate cookie can expire after the allotted time, be deleted when a customer clears their browser cookies, or can be overridden by a subsequent affiliate link.