CodeIgniter Forums
Remote logout like Gmail, Facebook... ? - 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: Remote logout like Gmail, Facebook... ? (/thread-35098.html)



Remote logout like Gmail, Facebook... ? - El Forum - 10-19-2010

[eluser]rafabayona[/eluser]
Hi, I'm working with DB stored CI sessions and I'm wondering if it's possible to access to a user_data item, or add a custom user_id field to the sessions table, in order to get all the sessions opened by the same user and then delete any of them.

Thank you!


Remote logout like Gmail, Facebook... ? - El Forum - 10-19-2010

[eluser]WanWizard[/eluser]
Can you be more specific? You have a user that can have multiple session records, and some indication of the user in the user_data of the session record, and you want to delete all those records?


Remote logout like Gmail, Facebook... ? - El Forum - 10-19-2010

[eluser]rafabayona[/eluser]
Yes, something like that. For example, GMail: http://blogs.pcworld.com/staffblog/archives/gmail-account-info-full.jpg

But not necessarily all those records, but let the user choose which of them