S
S
Sergey Miller2021-01-26 19:51:55
MODX
Sergey Miller, 2021-01-26 19:51:55

Modx Revo api how to make users status online/offline?

Hello.

There are users on the site, users are displayed on some pages of the site, I think about the question of how to determine whether a user is online or not. Are there any ways to do this?

The modx_user_attributes database has columns lastLogin (the date the user last logged in) and thisLogin (the start date of the current user session). From these two data probably it will not turn out to calculate the status.

There is also a UsersOnline component that displays a list of online users. But I would like to solve this issue using api.
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Froggyweb, 2021-01-26
@Froggyweb

Well, Google has
an example here www.thecreativedev.com/how-to-check-user-is-logged...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question