简体   繁体   中英

Creating list of Online users using SESSION without database?

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:

PHP Reports the number of users that are currently online

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM