Django, Python: How do I know if users have closed their browser without click logout?
It's not pretty, but you could fire off ajax requests with the user's session info (or some cookie, or any way of identifying the user) every x seconds with javascript and if you haven't received anything from that user in 2*x seconds, then they're likely to have left the page/site.
Django, Python: How do I know if users have closed their browser without click logout?
Really seriously question, because I need to analyse the user activities.