Gayner Posted September 28, 2009 Share Posted September 28, 2009 I want to create a field row called "totaltime" i know how to do that, but i want it to save the total time a user is on my site, and when to turn it off, etc. Possible if so how? thx I want the data to be stored in a Data Type mysql thing lol Link to comment https://forums.phpfreaks.com/topic/175863-total-time-spent/ Share on other sites More sharing options...
laPistola Posted September 28, 2009 Share Posted September 28, 2009 Using PHP only will not be accrute but i would start a session when the user logs in that stores the time, then every page they use, onload checks the session and works out the total time since there last page load and stores that in a new session while updating the time session with the new time and so on, you can aslo make each page load update the DB with how long they have been on, then have the code check how long they have been on and log them out or what ever. Link to comment https://forums.phpfreaks.com/topic/175863-total-time-spent/#findComment-926666 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.