CodeIgniter Forums
[CI 1.7] Sessions and custom datafields - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: [CI 1.7] Sessions and custom datafields (/thread-12065.html)



[CI 1.7] Sessions and custom datafields - El Forum - 10-04-2008

[eluser]Renard Urbain[/eluser]
I am looking forward to use the code igniter as I am going to convert the actual codebase (built with Kohana 2.1).

CodeIgniter since 1.7 SVN seems to be able to use the database as session storage natively.

For my current session table I am using I do have one column that I use to store the user_id of the current user. Therefore I am able to check who is online when I exec my queries. Quite usefull for checking which of the "favs/friends" are online.

Now does CI support adding custom columns with the library or if it is not the case is there a way I can check which users are online ? using a user_id as kind of foreign key?