Re: how to delete a file that is related to the session object
From: John Saunders (johnwsaundersiii_at_notcoldmail.com)
Date: 09/19/04
- Next message: John Saunders: "Re: composite control viewstate problem"
- Previous message: John Saunders: "Re: Looking for advise: Multithreaded http requests"
- In reply to: itay: "how to delete a file that is related to the session object"
- Next in thread: itay segal: "Re: how to delete a file that is related to the session object"
- Reply: itay segal: "Re: how to delete a file that is related to the session object"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 19 Sep 2004 12:33:02 -0400
"itay" <itay@discussions.microsoft.com> wrote in message
news:60F10D6E-4A5C-4028-B1C8-06374B874811@microsoft.com...
> well, i use a static object for every session in my web app., and in that
> object there's a new file copied from an existing file, and this file is
> needed as long as the session exists. my question is - if the user closes
the
> explorer's window, the session ends, but the file isn't deleted. if i add
a
> destructor to the session object, where i try to delete this file - the
> garbage collection engine will reach it, but won't recognize the file (the
> file string will be assigned with null value, after the user has shut the
> window). clearly, if the user preses an "end session" button, there will
be
> no problem. but as far as i know, most users will press the "X" button to
> close the window, and that way i will never be able to delete the file.
> i'd realy appreciate someone's help with this issue
Your description isn't sufficient to tell me what your code is doing. For
instance, what do you mean when you say "a static object for each session"?
Maybe you could boil this down to a small reproducer and then post the code?
-- John Saunders johnwsaundersiii at hotmail
- Next message: John Saunders: "Re: composite control viewstate problem"
- Previous message: John Saunders: "Re: Looking for advise: Multithreaded http requests"
- In reply to: itay: "how to delete a file that is related to the session object"
- Next in thread: itay segal: "Re: how to delete a file that is related to the session object"
- Reply: itay segal: "Re: how to delete a file that is related to the session object"
- Messages sorted by: [ date ] [ thread ]