Ask HN: What is the best way to check if a user is online on your website?
Hi HN,<p>I am trying to check the online activity of a logged in user on my website. For now, I am checking (in every 5 minutes) if a user is online if she scrolls upto certain part of the webpage. Or, if she switch from page A to page B or vice versa.<p>But still these two methods are not working well.<p>Can somebody assist me the best way to check the online activity and mark a user online. I am looking for an easy way.<p>Please help.