Welcome Guest, Not a member yet? Register   Sign In
How to get/display all logged in users?
#5

[eluser]m4ikel[/eluser]
Quote:The problem I couldn’t wrap my head around was updating the table on logout, as this may never happen if the user doesn’t manually log out.

Solution to that is to simply check which timestamps are older then lets say 30 minutes and delete it from the database. You can check for this everytime someone logs in/out, that way its automated "cron" without any fency crons/scripting.

Google for: timestamp Calculating age

Also check http://ellislab.com/codeigniter/user-gui...sions.html


Messages In This Thread
How to get/display all logged in users? - by El Forum - 12-30-2010, 01:47 PM
How to get/display all logged in users? - by El Forum - 01-01-2011, 09:45 AM
How to get/display all logged in users? - by El Forum - 01-02-2011, 02:55 PM
How to get/display all logged in users? - by El Forum - 01-02-2011, 02:59 PM
How to get/display all logged in users? - by El Forum - 01-02-2011, 03:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB