I'm working on a little project and need some help.
What I'm looking to do is:
1. have user fill out a form to obtain information
2. based on the information, the system will decided while file should be provided
3. system will automatically send an email to the user with TEMPORARY link to the download location
4. link should expire within 1day
5. files should be protected and not accessible any other way.
I've got number 1, 2 and 3 done, but i'm not sure where to start with creating unique temporary links to the download the file. This is similar to, for example, a trial software download. You provide your email, they send you link to your email which is valid for 30 days. After 30 days, the link doesn't work anymore.
How can I do this? where do I start?