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