How to catach a close event on a website without javascript?

Feb 28th, 2009 | By KC | Category: JavaScript Related

How can i locate a tighten eventuality upon a web page but a make use of of javascript. we have a site which a users has to record in to as well as from which we have to keep lane of if they have been logged in or not. My complaint right away comes when a user has to be noted as logged out. How can we compromise a complaint which when a browser closes suddenly which it afterwards carries out a process which will symbol a user as logged out. The record out methods functions when a users logs out as well as afterwards closes a application.

Tags: , , ,

One comment
Leave a comment »

  1. Bottom line: It’s not possible, except maybe with VBScript. However, if you use that, you must understand that it will only work if the user is running a compatible browser on Windows. If you need to make sure users are logged off, you could try “timing out” their logged in status. i.e., after x number of minutes in which they do nothing, you assume the browser is closed and log them off automatically.

Leave Comment