0

Can anyone tell me how to track activity of a users. Using php.

How to track if a user is online or not how much time he is spending on site..

26th Jul 2017, 4:07 PM
Harish Jindal
Harish Jindal - avatar
3 Respostas
+ 1
you can use sessions. If session is set for specific user then that person is online. And you can use timestamp for time
30th Jul 2017, 5:36 AM
Mohit Mehta
Mohit Mehta - avatar
0
And what if the user logged in but not log out..
30th Jul 2017, 8:09 AM
Harish Jindal
Harish Jindal - avatar
0
if user is online then session would be set for specific session variable. if user log out then session would be destroyed. and you can find duration of set session
3rd Aug 2017, 12:16 PM
Mohit Mehta
Mohit Mehta - avatar