Forum Moderators: coopster
Is it possible if the user is active or inactive after he logs.
2> I want to count the total time the user is actively online till date. (counts the number of seconds he's online ever since he registered)
How to do the above tasks...
Is there any standard code or class which can be used for authenticating and registering users because it's very common for any site
means if the user is online then his session should expire if he's logged in and INACTIVE for 5 mins say.
It seems you should look more into cookies [php.net]
[webmasterworld.com...]
A count of how long they have been online would never be acurate, you can only include the time between page accesses. It would also be a ton of db writes, one per page per user.