Typically, the cookie window in marijuana affiliate programs lasts for 30 days. This means if a customer clicks on your affiliate link and makes a purchase within 30 days, you will earn a commission. However, it's always a good idea to check the specific terms of each program.