开发者

Determine if User's online

开发者 https://www.devze.com 2023-01-15 04:08 出处:网络
How can I determ开发者_如何学Cine if a user is online or not? Preferably a group of users. I was thinking everytime a user visits a page create a record in the db with Time.now and use AJAX to invoke

How can I determ开发者_如何学Cine if a user is online or not? Preferably a group of users. I was thinking everytime a user visits a page create a record in the db with Time.now and use AJAX to invoke periodic calls to my remote server; just to see if the time from their last noted activity was about, say, 10 minutes?


You could use Juggernaut to determine if the user if online by "ping" him constantly.

0

精彩评论

暂无评论...
验证码 换一张
取 消