Amgad Metry
Amgad Metry

Reputation: 1

Prevent the same user to log in more than once laravel 5.1

I just want to prevent the same user to login more than once from different browsers until the session timeout or the user logout... any ideas ?!

Upvotes: 0

Views: 630

Answers (1)

Parth Vora
Parth Vora

Reputation: 4114

I think you can only manage that by storing login status in the database like upon login, set login column to true and upon logout set login status to false. And upon login, first, check that login column is false or not.

BTW can you please tell us that why do you want to do that, so that we can suggest some other way out?

Upvotes: 1

Related Questions