Total time

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Vicious
Forum Contributor
Posts: 105
Joined: Fri Jun 20, 2003 12:40 pm

Total time

Post by Vicious »

Hey, I was wondering if anyone knows of a script that keeps the total time a user spends online in a certain period of time like a day or month? if not what would be the best way to do this most efficiently, thanks.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

keep a session start time, and a last time the session was accessed. Find the difference to know the minimum amount of time they've spent.
Vicious
Forum Contributor
Posts: 105
Joined: Fri Jun 20, 2003 12:40 pm

Post by Vicious »

Any other way that this could be done or anyone else know of a premade script? thanks.
Post Reply