[Javascript] Grab close window call

Hassan Schroeder hassan at webtuitive.com
Tue Apr 1 09:21:31 CDT 2008


Alan Easton wrote:

> And it is of no concern to the user how I record it in the DB, but I 
> will make an ajax call at that point.

though -- belt and suspenders -- you probably want to also do the
previously recommended:

3. Do a periodic time check in your dB for unclosed sessions and set
them accordingly.

:: as you can't be sure that the user's browser supports "unload" or
"beforeunload" -- Safari (current version) doesn't seem to...

FWIW,
-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-621-3445   === http://webtuitive.com

                           dream.  code.



More information about the Javascript mailing list