A
andrea azzini
I've got an ASP3 (IIS6) site, in which some scripts need to generate
temporary files in order to work. Now, the fact is: I would like those
temporary files to be deleted when a user's session ends (even though i've
got infinite hosting space, i feel it somewhat impolite to leave GB's of
useless temp files ;-) ).
The Session_OnEnd event, though, seems to have some problems in doing this:
1. I found in MSDN that it couldn't call Server.MapPath(). Not a big
problem, I hardcoded the base path and everything should have worked well.
2. The FileSystemObject.DeleteFile() method, though, seems to suffer from
the same problem: i get no error output on Session.Abandon() but the files
are still there.
Is there any workaround for this problem?
Thanks in advance
Andrea Azzini
temporary files in order to work. Now, the fact is: I would like those
temporary files to be deleted when a user's session ends (even though i've
got infinite hosting space, i feel it somewhat impolite to leave GB's of
useless temp files ;-) ).
The Session_OnEnd event, though, seems to have some problems in doing this:
1. I found in MSDN that it couldn't call Server.MapPath(). Not a big
problem, I hardcoded the base path and everything should have worked well.
2. The FileSystemObject.DeleteFile() method, though, seems to suffer from
the same problem: i get no error output on Session.Abandon() but the files
are still there.
Is there any workaround for this problem?
Thanks in advance
Andrea Azzini