EagerWolf Posted September 21, 2007 Share Posted September 21, 2007 Hey... I was searching trough internet and didn't find anything useful .. I want to do user online time counter... Like this one on phpFreaks. Total time logged in: 180 hours and 15 minutes. Thanks Link to comment https://forums.phpfreaks.com/topic/70143-user-online-time/ Share on other sites More sharing options...
redarrow Posted September 21, 2007 Share Posted September 21, 2007 use the date function session's and cookies. Link to comment https://forums.phpfreaks.com/topic/70143-user-online-time/#findComment-352248 Share on other sites More sharing options...
EagerWolf Posted September 21, 2007 Author Share Posted September 21, 2007 I was thinking about using database... Using a cookie wouldn't be useful, because users might use different computers to access my site.. In this case output wouldn't be correct. But do I have to use crontab than to check if user is still logged in and active? Or is here any easier solution? Link to comment https://forums.phpfreaks.com/topic/70143-user-online-time/#findComment-352275 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.