V
V
Vladimir Sokolovsky2011-07-11 14:53:33
Django
Vladimir Sokolovsky, 2011-07-11 14:53:33

How to organize monitoring of user activity on the site?

There is a site where it is sometimes important to get information about whether the user is online or not. First, we just made a record in the time and date database with any page update, and we consider that the user is online if more than 5 minutes have not passed since the last page update. But since the site is based on video clips, the user can watch the video for a long time and not be active on the site, and it is impossible to find out whether he is online or not in this way. If anyone has experience with this problem, please share it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sajgak, 2011-07-11
@sajgak

background with an open page on Ajax, send a request to the server every N seconds / minutes. Of course, it’s not a fact that the user is actually looking at the page, but it’s definitely better than the time of the last action

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question