Answers for "forget or remove a session in laravel"

PHP
1

forget or remove a session in laravel

//remove single session
Session::forget('Sessionkey');
//remove multiple sessions
Session::forget(['sessionKey1', 'sessionkey2']);
//remove all sessions
Session::flush();
Posted by: Guest on May-05-2022

Browse Popular Code Answers by Language