Home
Sign Up
Sign In
V2EX
›
问与答
PHP 如何限制用户同时只能有只能有一台设备在线?
fuwu1245
·
Feb 23, 2017
· 2410 views
This topic created in 3375 days ago, the information mentioned may be changed or developed.
改造公司一个现有的项目,用了 CodeIgniter 框架,现在的需求是限制用户在同一时间只能有一台设备在线
sessionid 存储在 redis 里面
客户端 cookies 里亦存储了 sessionid
sessionid
Redis
PHP
只能
2 replies
•
2017-02-23 21:22:34 +08:00
1
1Satoshi
Feb 23, 2017
多存一个 token ,每次登录更新 token 的值。
2
lslqtz
Feb 23, 2017 via iPhone
用 ua
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
912 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 34ms ·
UTC 20:59
·
PVG 04:59
·
LAX 13:59
·
JFK 16:59
♥ Do have faith in what you're doing.
❯