How to destroy all sessions of a user, save the current session?

1

How can I log out of all other sessions of a user at a single time, preserving only the current session?

I want to apply this behavior when resetting the user's password. By default Laravel keeps old sessions valid even after the user changes their password, this can be a problem if the purpose of the user is to prevent access from third parties who may have "acquired" their password.

Note: I'm using Laravel 5.6

    
asked by anonymous 05.04.2018 / 02:47

0 answers