Two panels with two auth guards, logges me out from both

I have two panels: admin and partner. First is using the web guard, second the partner guard (see config/auth.php):

    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],
        'partner' => [
            'driver' => 'session',
            'provider' => 'users',
        ],
    ],


$panel->path("admin")->authGuard("web")
...
$panel->path("partner")->authGuard("partner")


It works. When navigating to /admin I can login as admin, and when going to /partner I can login as a partner. Now I am logged in as 2 different users as expected.
But when I click on logout on one of the panel, I am logged out in the other panels as well. That makes no sense?

When putting on of the panels on a (sub-)domain, then it works as well, but when I log out from one, I stay logged in in the other panel (this is the expected behaviour IMHO).
Was this page helpful?