Hi there,
Can you please not double (or triple or quadra) post your messages? Posting them in one forum usually gives it enough exposure.
Secondly, is the subject incorrect, or the question? They don't seem to match.
Anyway, the easiest way to do this is to use a database. Give each customer a unique idea. As soon as they log in, store this name somewhere (cookie, session, whatever). Before you display the list with files, check whether they have already download the file before. If they have, block the access.
Now, to prevent users from directly requesting the same file again, without going through your file list page, here's the trick:
1. Don't allow direct files; that is, don't store files under your wwwroot folder, but under c:\Documents for example.
2. Provide a general download page (download.asp for example) that takes the ID of the download.
3. In download.asp, implement the following pseudo code:
Code:
If ID is valid
If Customer has downloaded file before
Response.Write ("Sorry")
Else
Get file from file system and stream it to the browser
End If
End If
Check
here or
here for more info on how to push the file to the client.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.