Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel kill current session

use IlluminateHttpRequest;
use IlluminateSupportFacadesAuth;


function yourFunctionName (Request $request){
	....

	Auth::guard('web')->logout();
	
	$request->session()->invalidate();
	
	$request->session()->regenerateToken();

	....
}
Source by laravel.io #
 
PREVIOUS NEXT
Tagged: #laravel #kill #current #session
ADD COMMENT
Topic
Name
5+5 =