Skip to content

Commit 546f812

Browse files
Update index.php
updated to show cookie set with or without redirect
1 parent c691df7 commit 546f812

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/slim-framework-psr/web/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
$ch->recordPerformance(200);
2121
return $response->withHeader('Set-Cookie', $cookies->toHeaders());
2222
} else {
23-
return $response->withRedirect($ch->getRedirectUrl(), 302);
23+
return $response->withHeader('Set-Cookie', $cookies->toHeaders())->withRedirect($ch->getRedirectUrl(), 302);
2424
}
2525
});
26-
$app->run();
26+
$app->run();

0 commit comments

Comments
 (0)