I want to maintain a list of online users for my website WITHOUT database solution (so as to reduce the load).
Is it possible to achieve this with sessions?
I think you should use the memcache for that. sessions and cookies both have the size limits which obviously is not the right choice
Maybe you can modify this class a little to also include the username:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.