Welcome Guest, Not a member yet? Register   Sign In
Sessions: 'ci_sessions' user_data
#4

[eluser]Dam1an[/eluser]
Ah, this is something which has been discussed a few times in the forum
Basically you want to track the last_activity of a user which gets updated on every page request for that user. You could either extend the session table to have this or in the users table (or make a seperate table for this). Then when you need to find users currently online, just find the ones which have a recent_activity in the last X minutes.

If you need some more info just search the forums for some similar threads


Messages In This Thread
Sessions: 'ci_sessions' user_data - by El Forum - 07-17-2009, 04:22 AM
Sessions: 'ci_sessions' user_data - by El Forum - 07-17-2009, 04:30 AM
Sessions: 'ci_sessions' user_data - by El Forum - 07-17-2009, 04:41 AM
Sessions: 'ci_sessions' user_data - by El Forum - 07-17-2009, 04:47 AM
Sessions: 'ci_sessions' user_data - by El Forum - 07-17-2009, 05:39 AM
Sessions: 'ci_sessions' user_data - by El Forum - 09-09-2009, 11:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB