Re: FN-FORUM: Monitoring downloads of MP3s
date posted 16th January 2006 14:43
On Monday 16 Jan 2006 12:35 pm, D D Glendinning wrote:
> What they would like to do is in a first instance, make the albums
> available for download, rather than posting, but tracking the sales is
> very important, and allowing only one download per sale is also very
> important (so, having download areas, that expire).
We've just done a site for a small world music record label including
online sales. We'll contact you by email if you'd like, but for the=20
benefit of the list, the basic technique here is to create a "token" -=20
a random string that is stored in a database table along with the filenam=
e.
(The file itself is not accessible, of course). The punter gets a link
like www.site.com/download.php&token=3D128351745632184
and after the token's been used the record in the table gets marked
as no longer valid.