Results 1 to 4 of 4

Thread: sessions..........

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298

    Question

    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.

  2. #2
    Lively Member chrisgaddy's Avatar
    Join Date
    Mar 2001
    Location
    Olive Branch, MS
    Posts
    71
    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...

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298
    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.

  4. #4
    Addicted Member JasonGS's Avatar
    Join Date
    May 2000
    Location
    California
    Posts
    155
    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
  •  



Click Here to Expand Forum to Full Width