Hello,
I’m developing a website that contains a store with a PayPal shopping cart. When users want a file, they are redirected from my site to PayPal to purchase the file. When the transaction is complete, they are redirected back to my website.
As soon as they come back to my site, they come to a “splash” PHP file, which redirects to another PHP file that prompts the download of the purchased file.
I ONLY want the redirection from the “splash” file to the download file to happen if the user was redirected from Paypal. That is, if they copied and pasted the “splash” file into the browser, the download should not start.
I got a bit of help with this elsewhere and I started using sessions, but I got stuck. I don’t even know if sessions is the right way to go anymore.
Any help is greatly appreciated. Thank you.