Home > Backend Development > PHP Tutorial > php 判断在线用户

php 判断在线用户

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:45:47
Original
1307 people have browsed it

判断在线用户有什么好的方法吗?
客户端 (java) 服务端(php)
1、通过java登陆php网站 ,怎么识别是java登陆的还是用户在浏览器直接登陆的(怎么区分?)

回复内容:

判断在线用户有什么好的方法吗?
客户端 (java) 服务端(php)
1、通过java登陆php网站 ,怎么识别是java登陆的还是用户在浏览器直接登陆的(怎么区分?)

登录的时候隐藏提交一个参数.

客户端是android之类的么? $_SERVER['HTTP_USER_AGENT']; 判断user agent,记录一下,应该就可以了。

参考文章:http://blog.csdn.net/defonds/article/details/8128165

看下下面这篇文章,也许对你有帮助实现统计在线用户的几种方式

Related labels:
php
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template