Welcome Guest, Not a member yet? Register   Sign In
MythAuth: how implement log out from all devices?
#1

Hello.
In Myth-auth how to implement log out from all devices except the currently logged-in device?
Thanks in advance.
Reply
#2

If you set sessionExpiration = 0 then all devices will be logged out on web browser closing.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(This post was last modified: 09-08-2021, 03:10 AM by manager.)

(09-08-2021, 02:35 AM)InsiteFX Wrote: If you set sessionExpiration = 0 then all devices will be logged out on web browser closing.

Thank you for your answer.
But i mean how to implement it inside profile page for example.
For example user inside settings page opens security menu and there will be all active sessions with device names and "logout all devices" button. Pressing this button should clear all active sessions in all devices except this one.
Thank you in advance.

[Image: xxcMU4g.png]
://imgur.com/xxcMU4gs://imgur.com/xxcMU4g
Reply
#4

try using databasehandler as session handler. more readable data , easy to figure out
Reply
#5

(09-08-2021, 12:44 PM)ikesela Wrote: try using databasehandler as session handler. more readable data , easy to figure out

Thanks for your answer. It would be nice to see some sample (starting point).
Reply
#6

Assign all devices to an array except for the one you want to keep then loop through it and delete the rest.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB