Creating a time limited link and identifying when the user has clicked on that link


hi everyone,

i wanted create temporary time limited link ( url ) allow user download data link , expire after 24 hours.in regards workflow follows

  • create temporary link , email user link download data 24 hours link .
  • user clicks on link after 24 hours , should link expired.

now question is, as emailing user url , can work out programatically when user clicks link ?

my second question , how make link expire after 24 hours ?

can me ? appreciated.

regards,

josh

i don't think there ready-made solution that, shouldn't hard implement (wcf) service , database @ server side - if client can deal redirections. when need create link page (say, http://a.b.com/c/d), you'd create random link in service (http://your.service.com/path/redirectingservice.svc/getlink/abcdef), store in database new row following information: original link (a.b.com/c/d), expiration date (now.adddays(1)), random link (abcdef).

you can return link service (http://your.service.com/path/redirectingservice.svc/getlink/abcdef) client.

in service implementation, you'd random link value parameter, query database entry link. if link has expired, return error (e.g., 404, 500, etc.) client. if link valid, can return 307 location header set actual link.



Silverlight  >  Accessing Web Services with Silverlight



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........