I want to be able to kick logged in users via their sessions...
So what I want to do is to delete a session in my database (structure below) And so "kick" the user from te logged in users.
How Can I get the session of all the users and merge them to the users?
So like session ID d98af07db237867a62e8ee53b372847f89363eae
Belongs to User Robin
.
But session ID dsdfjsmoijqsfqsfsqf5qs54fq5f4s6f4s6d54f
Belongs to user Patrick
.
My database looks like the standard of Laravel so id, payload and last_activity.
Hope someone can help me out.