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
2009-09-24 10:17:37
By constantly what do you mean. Every second?
rahul
2009-09-24 10:23:09
It's up to developer.
Andrejs Cainikovs
2009-09-24 10:31:56
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
2009-09-24 11:34:26
i don't understand you comment. be descriptive.
Andrejs Cainikovs
2009-09-24 17:29:12
how to know that the page is open ???
honest
2009-09-28 11:49:24
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
2009-09-28 14:18:14