Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 25th, 2003, 02:18 PM
Authorized User
 
Join Date: Jul 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default File size on customer side

Hi all,
I'm looking for a solution for the following problem.

A customer logs in to the webserver and see a list with requested file where he payed for. Once the download was sucesfull he cannot download the file a 2th time.

Any idea how to solve this practical ?

Thanks,
Vincent


 
Old August 27th, 2003, 11:07 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There are several solutions to this problem. One is to write a cookie to the computer once the user downloads the file the first time, you can then check for the existence of this cookie if the user tries to download it a second time. The problems with this solution are that the user may not have cookies enabled. The users can also delete their cookies if they want to.

Another solution would be to have your users log into your web site. You would then store their login details in a database along with what they are allowed to download and whether they have downloaded it before.

You could also provide them with a special code when they purchase the file, then they are only allowed to download the file if they type in a correct code. Once they have done this you can remove the code from you list of allowable codes so that if they type it in a second time they will not be allowed to download the file.

Regards
Owain Williams





Similar Threads
Thread Thread Starter Forum Replies Last Post
Verifying uploaded File Size in Client-side Ushhh ASP.NET 1.0 and 1.1 Professional 5 August 30th, 2006 07:13 AM
How to check file size on customer side vincentvdm Classic ASP Professional 3 August 27th, 2003 12:23 AM
File size on customer side vincentvdm Javascript How-To 2 August 25th, 2003 04:16 PM
File size on client side vincentvdm Classic ASP Basics 0 August 25th, 2003 02:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.