Welcome Guest, Not a member yet? Register   Sign In
Using sessions with database..
#3

[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 Big Grin


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..


Messages In This Thread
Using sessions with database.. - by El Forum - 02-11-2013, 09:21 PM
Using sessions with database.. - by El Forum - 02-12-2013, 07:07 AM
Using sessions with database.. - by El Forum - 02-12-2013, 08:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB