I have an application in laravel 5.4 in which an authenticated user can not be logged in more than one computer at a time, how could this be done? I am new to laravel, I appreciate any help or recommendation.
I have an application in laravel 5.4 in which an authenticated user can not be logged in more than one computer at a time, how could this be done? I am new to laravel, I appreciate any help or recommendation.
What I do in my applications, is to put a field in the users table where I save a variable when the user logs in, that same variable I store in $ _SESSION. then what I do is to consult in the database if it matches the session variable I keep the user's session open, if it enters from another browser, it saves a different variable in the database and when the variables do not match, the session will end of the first browser ... I do not know if you explain xd