Ved21212's avatar

Session issue during logout from one guard, all the guards gets logged out

What can i do inorder to destroy session for one specific guard because currently whenever I am trying to logout from one guard all sessions gets destroyed and this causes all the guards to logout . Any Help!!

public function logout(Request $request)
    {
        $sessionKey = $this->guard()->getName();
        $this->guard('sellerbranch')->logout();

        $request->session()->invalidate();

        return redirect('sellerbranch/login');
    }


    protected function guard()
    {
        return Auth::guard('sellerbranch');
    }
0 likes
2 replies
Ved21212's avatar

My issue is as I mentioned when ever i try logging out from any one of my guards all my sessions gets destroyed because of which I get logged out from all other guards simultaneously

Please or to participate in this conversation.