I am trying to figure out how to have a script dynamically create and
then dispose of a text file. A script will generate a text file using
the standard I/O functions and then present a link so the user can
right-click and download. That part is easy. The file could be
created in a unique directory on the server for each user such that
different users don't clobber each other. How can I make sure the file
is later removed if the user backs out of the page and doesn't
explicitly logoff. I suppose it boils down to is there a way to write
a script that gets executed when a session ends whether the user
explicitly logged out or not.
Thanks,
then dispose of a text file. A script will generate a text file using
the standard I/O functions and then present a link so the user can
right-click and download. That part is easy. The file could be
created in a unique directory on the server for each user such that
different users don't clobber each other. How can I make sure the file
is later removed if the user backs out of the page and doesn't
explicitly logoff. I suppose it boils down to is there a way to write
a script that gets executed when a session ends whether the user
explicitly logged out or not.
Thanks,
Comment