View Full Version : problems deleting a file

03-21-2005, 09:29 PM

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?



03-21-2005, 09:32 PM
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.

03-21-2005, 09:41 PM
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.