I am trying to create a one time download link in php as my client would like to sell bus trip tickets on their website. I am a begginer/ never really wrote my own php and I am trying to create a one time download link for the tickets. The issue is that the vouchers ae created dynamically by php too and a variable is stored in the link, otherwise I could just use the builtin function of my cms. However, I want to create one time link to a page redirecting people to the page with the redirect.
If someone could outline the process of creating one time links that would be greatly apreciated, and if some could provide some example code that would be great.
Thank you,
Thomas
The outline is like:
And then make sure that your download script checks whether the id has been used before.