Support the ongoing development of Laravel.io →
Laravel Session Sanctum
Last updated 4 months ago.
0
moderator Solution

If you use the database driver you could create a model for the sessions table (important note, it doesn't have the default timestamps) With that you could load it like any other data and list or delete it.

Small warning: if you want to change the payload (the data stored in the session) you need to be careful because you can damage that session and create strange situations. But showing the sessions with data like ip and user_agent and deleting other sessions should be possible.

0

Sign in to participate in this thread!

LoadForge

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.