Skip to content

Commit 99b9264

Browse files
committed
Fixed cookie deletion inconsistency for session management
1 parent 33bcf23 commit 99b9264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Middleware/DisableCookies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function handle(Request $request, Closure $next)
1717
return $next($request);
1818
}
1919

20-
Cookie::queue(Cookie::forget(strtolower(config('app.name')).'_session'));
20+
Cookie::queue(Cookie::forget(str_replace(' ', '_', strtolower(config('app.name')).'_session')));
2121
Cookie::queue(Cookie::forget('XSRF-TOKEN'));
2222
config(['session.driver' => 'array']);
2323

0 commit comments

Comments
 (0)