I think default session timedout value is 20 minutes. So you can just know it 20 minutes after user close X button. You can change it to 1 minute but not recommended.
If you want to make web application like chatbox, you need to add small Javascript/AJAX timer that will polling to the server to tell the user is online. Whenever server loss the polling, it will consider as user close X. Other thing, you can add Javascript code when user click X it will prompt user or you can just tell the server that the user is just leaving. However, you can't track the user that close it by using task manager or network connection is loss. Depend on your application. On Apr 19, 9:59 pm, "j.akki" <[email protected]> wrote: > Hi experts, > I want to change status in database if some one > directly close the browser (ctrl+F4) ,can you suggest how can we do > this ,Thanks in advance.
