Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    problems deleting a file

    Hello,

    Here's the background:

    I have one application written in Powerbuilder from which I must instantiate a web app and pass it information. I accomplished this by creating an html document from within the PB app and writing lines of Jscript to it. I then open the document from within the PB app using IE6. It submits the user name and password as a form and opens the page I need.

    The problem:

    I need to destroy the html doc after the page opens, as it contains sensitive info (username/pw). I can delete it from the client/server side (PB app), but a lost connection, time-out or lag could cause the file to be left out there for unsavory types to aquire. I have tried to find a way to delete the file using Jscript, but thusfar have only found methods to delete files that were just created in script. The file in question will already exist, having been created by the PB app. has anyone come across a similar problem? Is there a way to make the html doc self-destruct or clear?

    Thanks

    Stu

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    not familiar with Powerbuilder, but you could set up a crontab on your server to search for temporary files that are older than a day, and delete them.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #3
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks.....

    But I can't leave the info on the server longer than a minute or two, let alone a day. It's a large organization and the usernames/pw's in question would be deadly in the wrong hands.


  •  

    Posting Permissions

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