Laravel | block multiple logins with the same user

Asked

Viewed 387 times

0

I need an idea of how to solve the problem of the same user’s ability to log into several different machines at the same time.

Send examples or an idea of where to start looking for the solution.

The idea would be a flow similar to that:

If the user logs in with an account that is already logged in to a PC, the one that was logged in will be automatically logged out and will receive a warning explaining what happened.

  • What do you mean? Maybe I’m missing the point, but as far as I know, it’s possible to log in with the same account from different computers. What exactly are you trying to do?

  • Is this a standard installation or a custom system? This limitation does not exist by default in Laravel.

  • What I really want is to block this out. For example, I don’t want two different people to be able to log in to the same account on different machines, I want when a user logs in, they check if the account is already logged in and if they are logged out of the first machine.

  • I have a system that uses the standard Laravel authentication method, but I don’t want a user to log on different machines with the same login. if it does so, the first pc that was logged in automatically scrolls down

  • 1

    Check this out: https://blog.especializati.com.br/login-unico-no-laravel/

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.