更新时间:2023-12-04 18:38:04
您可以简单地使用
use Illuminate\Support\Facades\Session; Session::forget('YOUR_SESSION_ID');
如果要获取当前会话ID:
If you want to get the current session Id:
Session::driver()->getId();
我希望对您有帮助
如何在Laravel中使特定会话无效(与用户一起使用“记住我"功能)