Skip to content

Commit 0fe1c63

Browse files
yaniYani
andauthored
fix: sid generation in cookie middleware (compwright#5)
Co-authored-by: Yani <[email protected]>
1 parent 19358d0 commit 0fe1c63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/SessionCookieMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function process(
2727

2828
// Read the session cookie
2929
$cookies = $request->getCookieParams();
30-
$sid = $cookies[$manager->name()] ?? '';
30+
$sid = $cookies[$manager->name()] ?? null;
3131
$manager->id($sid);
3232

3333
// Handle the request

0 commit comments

Comments
 (0)