OnUnload when browser closes

Results 1 to 2 of 2

Thread: OnUnload when browser closes

  1. #1
    Join Date
    Dec 1969

    Default OnUnload when browser closes

    Hi all:<BR><BR>I am trying do some final cleanup on the server side when a user abruptly closes the browser. I am currently developing in C#. I have tried overriding the OnUnload function; and I have tried creating the event controller unload += .... All with no success.<BR><BR>Oh, and I keep NO server state. All objects are destroyed each time (will have conditional statement in OnUnload to prevent certain things from happening each time page is unloaded). I gave a half effort at using the finalize (or .net&#039;s version of finalize... sorry did java for a long time). Is that the path I should continue down?<BR><BR>Thanks!<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default You cannot deal with the browser closing

    ASPFAQ Nature of things.<BR>[hl="red"]<BR>When you close the browser the server does not know!<BR>[/hl]<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts