Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
C#
hi everyone,
I have a website that provide free ebook. When user click ebook to download, the website will respond a link to ebook.
I want this link download  will be die after 5 minute.
Someone can help me resolve this problem?
Thanks so much.


What I have tried:

I a newbies in asp.net application.
Posted
Updated 22-Jul-16 2:51am

1 solution

It's very easy but you have to write code, there is no built-in way to do it. For example, one way you can do it is to encrypt the expiration time into the querystring and then parse that in your page and compare to the server time.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900