The cookie duration depends on the merchant. Some affiliate programs allow cookies to store and transmit information for up to 90 days, while others only track the data for 24 hours (which is awful from affiliate's point of view).