Page Exit issue

Results 1 to 2 of 2

Thread: Page Exit issue

  1. #1
    Join Date
    Dec 1969

    Default Page Exit issue

    Would appreciate some help please...<BR><BR>I need to run some ASP code when a user leaves a particular page. The ASP is a pure database update, nothing to see. I do not want to open a window to do it.<BR><BR>I thought to use Session_OnEnd, but it doesn&#039;t seem to fire until the session times out or is explicitly abandoned. <BR><BR>Maybe this is really simple, and I&#039;m just really stupid at this hour,... but how do I code the OnUnLoad event to execute Session.Abandon... or is there a better way to do it?<BR><BR>Thanks<BR>Tim

  2. #2
    Join Date
    Dec 1969

    Default RE: Page Exit issue

    This has been asked lots of times, and it all comes down to the answer "there&#039;s no fullproof way to do it"<BR><BR>Session_OnEnd is unreliable<BR><BR>and for OnUnload, a lot of people (like me) browse a website with multiple IE windows. So when I close one windown, OnUnload will be fired while I might have 3 other windows open.<BR><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