There is the ability to set the amount of time an affiliate cookie is active.
Setting the Affiliate Cookie Active Length
Affiliate Program Settings
The active time for a cookie can be edited under Commerce Affiliate Program Settings
Affiliate Cookie Length
Enter the number of days a cookie should remain active on a referral's browser. The default is 365 days.
Click the button