G
G
Good Samaritan2019-05-24 12:41:22
1C-Bitrix
Good Samaritan, 2019-05-24 12:41:22

How to count the number of visits by users?

There is a task, on the page of the list of users to make a field the number of inputs, and to filter by this field. There is no experience at all about the latter, is it realistic to count the number of user logins?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Nikolaev, 2019-05-24
@djamali

Do you mean how many times each user has entered a username and password in the authorization form?
In theory, you can create a custom field. Go to settings -> create user fields for example UF_AUTH_COUNTER be sure to call it either to USER or to CUSER (I don’t remember exactly, you need to look).
So the counter you have for each user is personally created.
At the moment of successful authorization (if you give it through the API), you make a request to the user's custom field (implementation examples are here blog.ivru.net/?id=29)
If you have a standard authorization component and not an API, then look, maybe there is an authorization event for php_init and already there you do update information on the counter.
And so get that you have in UF_AUTH_COUNTER the number of authorizations for each user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question