0
I need to create an affiliate program, where every registered affiliate will receive a single link with a link related to their ID in DB, for example:
example.com/affiliated? 4312123
I need to create cookies valid for 30 days, that when the user who accesses the site for the first time through the affiliate link, will be saved and later if it comes to completing a form, this form capture in a hidden field the affiliate ID.
How can I do this? Thank you
From a read: https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies
– Augusto Vasques