JS: ne zaman müşteri çıkış benim web sitesi sağ köşesinde X tıklayarak, benim DB istemci çıkış zaman kazanmak için nasıl

0 Cevap php

I have to save in DB the times when users entering and exiting my site, with the enter is no problem, and so with exit by clicking my "log off" button,

but what with the situation that client exit by clicking X in the right corner? how to handle this? I tried use onUnload event but it works also when redirecting to other page in the site. onClose event doesn't work.

herhangi bir fikir?

Thanks, sara, PHP and JS developer

0 Cevap