开发者

Is there a way to check or display which users are currently logged on?

In D开发者_C百科rupal, is there a way to check or display which users are currently logged on? I want users who are logged on to be able to see who else is on. Is this possible and if so, how?


There is a Who's Online block in Drupal Core. Enable that to show a list of online users.


One of the default blocks Drupal implements is the Who's online one.
There are two settings you can change for that block: User activity (how long users are still considered online after they viewed a page), and User list length (the maximum number of currently online users to display).

In Drupal 8, and Drupal 9, the Views module is part of the Drupal core modules. The Who's online block is now a view, enabled by default. The following screenshot shows its settings.

Is there a way to check or display which users are currently logged on?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜