Results 1 to 3 of 3

Thread: Downloading of a file

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2001
    Location
    Ottawa
    Posts
    38

    Question Downloading of a file

    I have a program setup where users will get an e-mail with a URL to a web site and a random password for a file. When they enter the file password they get redirected to a web page that contains a link to that one file (it's a zip file) matching the password. Using the <A href...></A> tags, they can either click the file line or right click and select save as to get the file. What I'd like to do next is remove the file from the server when the download is complete (rather than doing the maintenance myself). When would be the best way to do this ? I went with the <A href> tags since this was the quickest way to get the page completed based on the time constraints I had. Thanks.


    Chris

  2. #2
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668
    Not 100% sure but maybe I can suggest and Idea.

    When the use goes to the page it creates a session state that lasts maybe 20 minutes or whatever you think is appropriate. Once the session ends (either via time limit or the user closing the browser) it kills the file.
    If wishes were fishes we'd all cast nets.

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2001
    Location
    Ottawa
    Posts
    38
    Hey Graff
    That's a neat idea, I'll have to give it some thought and let you know.

    Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width