c# - How to write the code for self expiring download link for asp.net website? -


I plan to sell digital goods on my website (ASP.NET). After successful payment the customer will be redirected to the download page of my website, which will display a link to download the stored digital content in my server.

I want to save the file's location by creating a usable link to the file. Every time a customer goes to this page, a new download link will be created for the same file. This link should end after downloading for the first time.

Is it possible to do asp.net (preferably in C #)? If so, how can I do this?

Yes it is possible to use files in a way

< / Html>

Comments