S
S
Sergey2015-03-26 18:54:58
Yii
Sergey, 2015-03-26 18:54:58

How to find out if a user is online in yii2?

For example, by login or its id, or at least by a token, how can you find out?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FanatPHP, 2015-03-26
@butteff

Users are not online.
The user's connection to the website is not permanent, but discrete.
Therefore, the number of "users online" is always approximate, calculated from the time of the last request by the user of the site and the timeout - who has enough for what impudence.
The most stupid rascals take a session timeout - 24 minutes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question