Create and Dispose dynamic content



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,

.



Relevant Pages

  • Re: Create and Dispose dynamic content
    ... 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. ... 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. ...
    (comp.lang.php)
  • Re: can I "dispose" of an array?
    ... > array for short time in a script. ... After I've used that data structure I ... > want to dispose of it to free-up resources. ...
    (comp.lang.php)
  • Re: can I "dispose" of an array?
    ... > array for short time in a script. ... After I've used that data structure I ... > want to dispose of it to free-up resources. ...
    (comp.lang.php)
  • Re: can I "dispose" of an array?
    ... > array for short time in a script. ... After I've used that data structure I ... > want to dispose of it to free-up resources. ...
    (comp.lang.php)
  • Re: [SLE] Where does yast keep its list of installation sources? [SOLVED]
    ... On Monday 27 February 2006 12:24, Brad Bourn wrote: ... The "export" script on the page Brad links to boils down to: ... And there's an import script too; ...
    (SuSE)