Skip to content

Commit

Permalink
Fixed cookie deletion inconsistency for session management
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianPrieber committed Feb 26, 2024
1 parent 33bcf23 commit 99b9264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/DisableCookies.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function handle(Request $request, Closure $next)
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']);

Expand Down

0 comments on commit 99b9264

Please sign in to comment.