Home > Backend Development > PHP Tutorial > discuz中怎么精确获取在线人数,不是按IP数来算

discuz中怎么精确获取在线人数,不是按IP数来算

WBOY
Release: 2016-06-13 10:57:56
Original
1472 people have browsed it

discuz中如何精确获取在线人数,不是按IP数来算。
discuz x2.5中如何精确统计在线人数,不是按IP数来算。
而且局域网中有多少人在线就计算多少人,并不因为他们是同一IP而只计算成一个人。

------解决方案--------------------
统计多少用户登录了。可以简单实现。没法做到精致准的。
------解决方案--------------------
可以考虑统计生成的有效时间内的cookie数
------解决方案--------------------
直接统计socket连接数,就可以了。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template