1
How can I at once log out of all other sessions of a user, preserving only the current session?
I aim to apply this behavior when resetting the user password. By default Laravel keeps old sessions valid even after user changes their password, This could be a problem if the purpose of the user is to prevent access from third parties who have "acquired" their password.
Note: I am using Laravel 5.6
Only if you set up Sessions to be stored in the bank
– novic
The session is stored on the person’s computer. Soon you would need to develop something with database
– Sveen
Note: There is no problem with multiple machines accessing the same login. The problem is to keep one person getting the password from the other. So there is email. In which you can notify the user when a different machine accesses your account.
– Sveen
@Sveen’s goal is not to notify access from another machine. My goal is only to turn off all sessions when the password is changed, with the exception of the current session.
– Fábio Jânio