如何使用asp.net知道某些用户在vb.net中是在线还是离线 [英] How can I know some user is online or offline in vb.net using asp.net

查看:131
本文介绍了如何使用asp.net知道某些用户在vb.net中是在线还是离线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想知道任何用户都在我的网站上登录。



我怎么知道他在任何时候都在线或离线?



我很清楚,如果他点击退出按钮然后我知道他离线了。 />


但是他没有点击退出按钮,他用十字(X)按钮直接关闭浏览器,或者那时他的网络连接丢失,那我怎么知道关于在线或离线详细信息?





如果有人对此问题有疑问,请发送电子邮件。分享我....

Hi,

I want to know that any user is login on my site.

How can I know he is online or offline in any moment?

I know very well if he click on sign out button then I know that he is offline.

But he does not click on sign out button and he close the browser directly with cross (X) button or his internet connection is lost in that moment, then how can I know about online or offline details ?


Plz if any one have answer on this question. Share me ....

推荐答案

由于网络的断开性质,无法确保服务器始终知道客户端是否关闭窗口。

但是!本文为您提供了一些适用于大多数情况的解决方案:如何浏览器关闭时结束用户会话 [ ^ ]
Because of the disconnected nature of the web there is no way to ensure that server will know at all time if client closed window.
But! this article gives you some solution that will work in most cases: How to end user session when browser closed[^]


这篇关于如何使用asp.net知道某些用户在vb.net中是在线还是离线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆