There is the ability to set the amount of time an affiliate cookie is active.
1. From the Control Panel, under 'Commerce' choose 'Affiliate Program'
2. From the 'Affiliate Program Menu' choose 'Customize Affiliate Settings and Signup Options'
3. In the very first field, 'Affiliate Cookie Length', set the amount of time in number of days