Fixed cookie deletion inconsistency for session management

This commit is contained in:
Julian Prieber 2024-02-26 19:50:20 +01:00
parent 33bcf236c2
commit 99b92641f3
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class DisableCookies
return $next($request);
}
Cookie::queue(Cookie::forget(strtolower(config('app.name')).'_session'));
Cookie::queue(Cookie::forget(str_replace(' ', '_', strtolower(config('app.name')).'_session')));
Cookie::queue(Cookie::forget('XSRF-TOKEN'));
config(['session.driver' => 'array']);