Welcome Guest, Not a member yet? Register   Sign In
Yet another problem with Session with DB
#6

[eluser]WanWizard[/eluser]
If you include the user (some form of unique id), all you need to do is to run a DISTINCT query, and include MAX(last_activity) to get the most recent active one.

This doesn't say much about being online though, because it's not updated at every page request, only when the session_id rotates.


Messages In This Thread
Yet another problem with Session with DB - by El Forum - 04-19-2011, 10:30 AM
Yet another problem with Session with DB - by El Forum - 04-19-2011, 10:40 AM
Yet another problem with Session with DB - by El Forum - 04-19-2011, 10:53 AM
Yet another problem with Session with DB - by El Forum - 04-19-2011, 01:56 PM
Yet another problem with Session with DB - by El Forum - 04-20-2011, 02:12 PM
Yet another problem with Session with DB - by El Forum - 04-20-2011, 02:17 PM
Yet another problem with Session with DB - by El Forum - 04-20-2011, 02:24 PM
Yet another problem with Session with DB - by El Forum - 04-20-2011, 03:51 PM
Yet another problem with Session with DB - by El Forum - 04-20-2011, 07:10 PM
Yet another problem with Session with DB - by El Forum - 04-21-2011, 03:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB