|
-
Mar 19th, 2001, 07:09 AM
#1
Thread Starter
Hyperactive Member
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.
-
Mar 19th, 2001, 08:59 AM
#2
Lively Member
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...
-
Mar 20th, 2001, 11:19 PM
#3
Thread Starter
Hyperactive Member
but even if i want to, where do I write code for the End Session???
Last edited by rammy; Mar 20th, 2001 at 11:34 PM.
-
Mar 21st, 2001, 02:44 AM
#4
Addicted Member
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>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|