eaquiroz
asked on
Dynamic Download Link Using Hash Expiration
Hello,
I want to ask what is the best way to have the link to a file expire after a set time, so that the user gets sent a download link via email which they only have access to for say 24 hours. I would prefer to use a hash tag instead of a web.config global setting or cookie. So that the system sends you a new hash like:
http://www.test.com/download.aspx?time=47326574836473847
I want to ask what is the best way to have the link to a file expire after a set time, so that the user gets sent a download link via email which they only have access to for say 24 hours. I would prefer to use a hash tag instead of a web.config global setting or cookie. So that the system sends you a new hash like:
http://www.test.com/download.aspx?time=47326574836473847
Why not just do it the way you suggested? Just take the current time to ticks then use a basic hash such as base64 to create a somewhat obscured url. Someone could reverse engineer it if they wanted but this method would be easy if the information wasn't very sensitive.
Sorry, I posted to a wrong question. Please ignore it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.