chechogrom's avatar

Maintain only one active session per device

Any existing idea or package that allows me to validate that there can only be one session per device, I need that when I have x session on x device and log on to a different one, the previous one or the others that are active must be closed, Thanks in advance

0 likes
1 reply
_NinjaDev's avatar

I suggest you use Events for this.

In your EventServiceProvider.php


protected $listen = [
        UserLoggedIn::class=> [
            LogOutOnOtherDevice::class,
        ],
]
1 like

Please or to participate in this conversation.