Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel one session per user

Firstly uncomment out the:

IlluminateSessionMiddlewareAuthenticateSession::class, line from AppHttp Kernel.php class.

Secondly add this line in your login controller function just after login attempt successfully and before redirection: Auth::logoutOtherDevices(request('password'));
 
PREVIOUS NEXT
Tagged: #laravel #session #user
ADD COMMENT
Topic
Name
8+2 =