We use a lifetime cookie through ShareASale. In addition each time an order is placed the referring affililate's id is added to the customer's record in the sales database. This way, even if the customer deletes cookies, uses a different computer, etc. the affiliate still gets credit for future sales.
Hoe this explains our tracking. Let me know if you have any additional questions.