-
Hi,
Im working on allowing users to upload files to a server. Im using a session variable to keep track of the uploaded filenames. What I want to is.....how can I delete uploaded files if the session has timed out?? Im not using this session from the first page of the site, but on one of the inner pages....
Thanx.
-
Hey rammy, we ran into a similar problem with this one. We created xml files on the server for the user to download and create reports with. The user would run a report, and we would give them the option to download it. We tried EVERY way possible to delete the files on Session end. Never did get that one to work. We ended up writing a seperate page for the administrator to log on and delete the files. To avoid deleting files that may still be in use, we deleted the files that were older than today. We never figured out why the session end code didn't work....and it never give us any errors...
-
but even if i want to, where do I write code for the End Session???
-
global.asa...
Code:
<script language="vbscript" runat="server">
Sub Application_OnStart
......some vbscript code
End Sub
Sub Application_OnEnd
......some vbscript code
End Sub
Sub Session_OnStart
......some vbscript code
End Sub
Sub Session_OnEnd
......some vbscript code
End Sub
</script>