[eluser]GonzaFY[/eluser]
[quote author="InsiteFX" date="1360678038"]To update a user online status you would need to use javascript timer events.
For the database you would need to create a user_online table and store the
information in it.
[/quote]
Do you mean a third database?
And why can't I store the information into ci_sessions?
I was thinking and I deduced I need do something like the facebook chat, if the user has the window opened then he is connected, if he close the browser he become off... But I don't want destroy the session when he close.
Thank
Then now I am trying to use the sess_expire_on_close to set off a user (but not expire the session) but when I search into the core I found only that:
$expire = ($this->sess_expire_on_close === TRUE) ? 0 : $this->sess_expiration + time();
I wanna make when sess_expire_on_close is called make "Status" to 0 but I don't understand how do that..