A
A
Anton2018-04-18 14:40:03
PHP
Anton, 2018-04-18 14:40:03

User - time spent on the site?

Good afternoon.
Something while nothing sensible climbs into my head, there were ideas, but I would like to see a couple more on this score.
Essence: It is
necessary to keep records of the time spent on the portal by authorized users.
What algorithm would be applied here, what scheme of recording this time should be used?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-04-18
@Minifets

The simplest and most accurate. Open a web socket connection. When connecting, remember the time, when disconnecting, count and save to the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question