How to check if visitor's IP Address is still active or online?

Is it possible to check if the visitor is still online using their IP Address? I have already created a javascript and php to check the visitors ip address when they open one of my page using onLoad and onBeforeUnload event. But there are some cases that my script cannot detect if the visitor is still opening my site. Since onBeforeUnload is not reliable all the time. In this case, I want to know if there are some other method to detect if the visitor is still online. If the visitor still open the page but don't read it because may be he/she is reading other site or running other program I would still consider he/she is online. If the visitor however, closed the browser but my script fail to detect its unload event I want to know if he/she still online. A PHP or javascript is okay for me.

以上就是How to check if visitor's IP Address is still active or online?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏