Link to home
Start Free TrialLog in
Avatar of eaquiroz
eaquirozFlag for United States of America

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
Avatar of cdaly33
cdaly33
Flag of United States of America image

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
Avatar of RameshS
RameshS
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial