8000 [HttpFoundation] Remove dead code for emulating SameSite cookie by mbabker · Pull Request #41448 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpFoundation] Remove dead code for emulating SameSite cookie #41448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2021

Conversation

mbabker
Copy link
Contributor
@mbabker mbabker commented May 29, 2021
Q A
Branch? 6.0
Bug fix? no
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

Follow up to #41295, the code setting the $emulateSameSite property was based on a PHP version conditional that's no longer used.

@carsonbot carsonbot changed the title [HttpFoundation] Remove dead code for emulating SameSite cookie Remove dead code for emulating SameSite cookie May 29, 2021
@mbabker mbabker force-pushed the remote-samesite-emulation branch from e0684a2 to a0a935a Compare May 29, 2021 14:45
@@ -157,13 +151,6 @@ public function start()
throw new \RuntimeException('Failed to start the session.');
}

if (null !== $this->emulateSameSite) {
$originalCookie = SessionUtils::popSessionCookie(session_name(), session_id());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this SessionUtils::popSessionCookie utility method still necessary then or should it also be removed ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s still used elsewhere.

@carsonbot carsonbot changed the title Remove dead code for emulating SameSite cookie [HttpFoundation] Remove dead code for emulating SameSite cookie May 30, 2021
@derrabus derrabus added this to the 6.0 milestone May 30, 2021
@nicolas-grekas
Copy link
Member

Thank you @mbabker.

@nicolas-grekas nicolas-grekas merged commit 17800d1 into symfony:6.0 May 31, 2021
@mbabker mbabker deleted the remote-samesite-emulation branch November 22, 2021 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0