CodeIgniter Forums
Remote logout like Gmail, Facebook... ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Remote logout like Gmail, Facebook... ? (/showthread.php?tid=35098)



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