sessions and timeouts

Results 1 to 4 of 4

Thread: sessions and timeouts

  1. #1
    Join Date
    Dec 1969
    Posts
    613

    Default sessions and timeouts

    hi...<BR><BR>i need a way to tell if a user&#039s browser has been closed...<BR><BR>i have a script that i run when the session is terminated (via session.abandon or timeout), but it also needs to run as soon as the browser is closed....<BR><BR>any suggestions?<BR>please email directly at scott@bridgepath.com<BR><BR>thanks<BR><BR>scott

  2. #2
    Join Date
    Dec 1969
    Posts
    572

    Default RE: sessions and timeouts

    There is no way(unfortunately) you can trap browser&#039s close event.

  3. #3
    Join Date
    Dec 1969
    Posts
    58

    Default RE: sessions and timeouts

    Not even in glabal.asa Session_OnEnd ?!?!?!?!?!?

  4. #4
    Michael Swanson Guest

    Default RE: sessions and timeouts

    I&#039m not sure that this will work, but I&#039d investigate using the JavaScript onUnload event to fire off a URL that abandons your session. You could even design the page as a "thank you for using our site" status display.<BR><BR>As far as your question about IIS triggering the end of a session, the server knows nothing about the state of the users browser...that&#039s why you have to use client-side programming (like the example I mentioned above) to *inform* the server of that event.<BR><BR>Michael Swanson, MCSE, MCP+Internet<BR>Webmaster<BR>Donnelly Corporation<BR>mike.swanson@donnelly.com


Posting Permissions

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