Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

PHP session cookies are no longer broken #252

Merged
merged 1 commit into from
Aug 17, 2017

Conversation

vakata
Copy link
Contributor

@vakata vakata commented May 26, 2017

When using native PHP sessions with cookies, PHP will set a cookie whenever a session is created or regenerated. Adding an additional Set-Cookie header in the same request will cause the PHP Set-Cookie header to be lost. Ideally native PHP sessions with cookies should be avoided when using PSR-7 compatible classes, but that is not always possible - this PR makes sure PHP's session cookies are not lost.

When using native PHP sessions with cookies, PHP will set a cookie whenever a session is created or regenerated. Adding an additional `Set-Cookie` header in the same request will cause the PHP `Set-Cookie` header to be lost. Ideally native PHP sessions with cookies should be avoided when using PSR-7 compatible classes, but that is not always possible - this PR makes sure PHP's session cookies are not lost.
@weierophinney weierophinney added this to the 1.4.1 milestone Aug 17, 2017
@weierophinney weierophinney merged commit 8fdbc0d into zendframework:master Aug 17, 2017
weierophinney added a commit that referenced this pull request Aug 17, 2017
PHP session cookies are no longer broken
weierophinney added a commit that referenced this pull request Aug 17, 2017
weierophinney added a commit that referenced this pull request Aug 17, 2017
weierophinney added a commit that referenced this pull request Aug 17, 2017
@weierophinney
Copy link
Member

Thanks, @vakata

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants