如何使用php跟踪用户是否在网站中处于活动状态


How can I track whether user is active in the website using php

我想知道如何跟踪用户在网站上花费的时间。

您可以在数据库中跟踪会话id。