views:

293

answers:

1

I need to update a table when user closed the browswer window and also want to destroy session . its urgent guys

A: 

Quick and dirty - have a client-side script that constantly reports (using a timer) that users page is still open.

Andrejs Cainikovs
By constantly what do you mean. Every second?
rahul
It's up to developer.
Andrejs Cainikovs
basically if we using onload or onbeforeload event into the page . its not good bcoz its fire of each refresh or postback and we are also not use to check the browser client X <0 or Y <0 its also not work so guys think about it ..... remember we need to update a table of dabase to ......
honest
i don't understand you comment. be descriptive.
Andrejs Cainikovs
how to know that the page is open ???
honest
Read my answer again - the page will report using js timer function to the server that it is still open (sending normal http query).
Andrejs Cainikovs