Welcome Guest, Not a member yet? Register   Sign In
How to know when user is "online"
#5

[eluser]AlexJ[/eluser]
No there is indeed no direct way to couple a user to a session, but you can make a MY_Session class that overwrites the default Session behaviour and adds a column user_id to the session table, then you can overwrite the set_userdata method so it saves the user_id with the session.


Messages In This Thread
How to know when user is "online" - by El Forum - 01-28-2011, 06:00 AM
How to know when user is "online" - by El Forum - 01-28-2011, 09:06 AM
How to know when user is "online" - by El Forum - 01-28-2011, 09:15 AM
How to know when user is "online" - by El Forum - 01-28-2011, 09:42 AM
How to know when user is "online" - by El Forum - 01-28-2011, 10:00 AM
How to know when user is "online" - by El Forum - 01-28-2011, 11:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB