显示当前登录网站的用户 [英] Show users currently logged onto site

查看:69
本文介绍了显示当前登录网站的用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我有一个成员登录的网站。我将成员/用户存储在MySQL数据库的用户表中。我如何能够在我的网站上显示当前登录所有用户的表格。我想要的方式是在数据库中有一个额外的表格,用于存储当前登录的用户,但我不允许这样做。有谁知道如何实现这一目标?任何帮助或链接将不胜感激。提前感谢你。

Hi all. I have a website that has members log in. I store the members/users in a users table in a MySQL database. How can i on my website show a table with all the users currently logged in. The way i wanted to do it is have an extra table in the database that would store the currently logged in users but i am not allowed to do that. Does anyone know how to achieve this? Any help or links would be much appreciated. Thanking you in advance.

推荐答案

有一些内置的方法可以确定谁登录到MySql数据库 - 如果你让用户在他们打开时登录数据库该网站然后你可以使用这些工具



看看这些帖子了解更多信息



< a href =http://stackoverflow.com/questions/5575347/list-of-users-accessing-database>访问数据库的用户列表 [ ^ ]



如何看到用户登录mysql [ ^ ]
There are built in methods for determining who is logged onto a MySql database - if you leave your users logged onto the database whilst they are on the site then you can use those tools

Have a look at these posts for further information

List of users accessing database[^]

How to see users logged into mysql[^]


这篇关于显示当前登录网站的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆