Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Perl/Cgi : how to delete file after leaving original myscript.cgi?

by r34d0nl1 (Pilgrim)
on Jan 03, 2005 at 18:20 UTC ( #419002=note: print w/replies, xml ) Need Help??


in reply to Perl/Cgi : how to delete file after leaving original myscript.cgi?

One way would be to send a request to myscript3.pl?file2delete=nnn (for example) to delete the nnn file.
It can be done using JavaScript like in OnBlur or OnClose methods.
Anyway the user may not allow you to open a new window, delete the file and then close the window, so I agree that
the unique way to be sure you can delete the file is to put a process that will delete the files created based on last access time, for example.
  • Comment on Re: Perl/Cgi : how to delete file after leaving original myscript.cgi?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://419002]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2019-10-15 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?