Separate Sessions for User and Admin Portals

I’m using Jetstream for a user (client) portal and Filament for an admin (employee) portal. These are two separate entities.

I have already set up two guards (web and admin), but they both override the same session row in the database. As a result:

  1. When I log out from one portal, it logs me out from both.
  2. After logging into one portal, if I don’t refresh, I get a 419 expired error. If I refresh, everything works fine.
    Question: Can I separate the sessions, for example, by using an admin_sessions table? Or am I doing something else wrong?
clarification: I have the same doubts that this user posted in this article :

but I don't know how to apply the same solution please help 😫
Laracasts
Was this page helpful?