"The exact handling of the unload event has varied from version to version of browsers. For example, some versions of Firefox trigger the event when a link is followed, but not when the window is closed. In practical usage, behavior should be tested on all supported browsers, and contrasted with the proprietary beforeunload event." source: http://api.jquery.com/unload/
so it seems this is not an exact science On 31 Mrz., 23:12, Tilen Majerle <tilen.maje...@gmail.com> wrote: > or unload event... > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > 2011/3/31 euromark <dereurom...@googlemail.com> > > > > > > > > > the only way i know is that you use ajax and repeatedly make an ajax > > call as long as he is on the site > > as soon as there is no call anymore (for more than x seconds) you know > > that he either closed the browser, surfed to another page or simply > > lost the connection :) > > > On 31 Mrz., 23:01, Shashank <cooldude17202...@gmail.com> wrote: > > > Hi Guys, > > > I want to know is there any way of knowing if a user has left a > > > particular page. > > > > What i mean is, suppose a user is on a page game/start, and he just > > > closes his browser without logging out of the game than how do i get > > > to know if he left the game or not?? > > > > Thanks in advance!!! > > > -- > > Our newest site for the community: CakePHP Video Tutorials > >http://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.com For more options, visit this group > > athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php