Skip to content
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

Handle lifetime value 0 for form_key cookie #10528

Merged
merged 1 commit into from Aug 16, 2017
Merged

Handle lifetime value 0 for form_key cookie #10528

merged 1 commit into from Aug 16, 2017

Conversation

ekuusela
Copy link
Contributor

@ekuusela ekuusela commented Aug 14, 2017

0 should not be interpreted as a duration but so that the cookie lasts until session closes.

Description

Leave out the duration if lifetime is set to 0. This results in the cookie to last until the session closes.

Fixed Issues

  1. form_key cookie expires immediately if cookie lifetime is set to 0 #10527: form_key cookie expires immediately if cookie lifetime is set to 0

Manual testing scenarios

See steps to reproduce in #10527

0 should not be interpreted as a duration.
@ishakhsuvarov ishakhsuvarov self-assigned this Aug 14, 2017
@ishakhsuvarov ishakhsuvarov added this to the August 2017 milestone Aug 14, 2017
@magento-team magento-team merged commit 83e21aa into magento:develop Aug 16, 2017
magento-team pushed a commit that referenced this pull request Aug 16, 2017
[EngCom] Public Pull Requests
 - MAGETWO-71578: Magento\Test\Js\LiveCodeTest is failing because of reference to missing file in blacklist #10536
 - MAGETWO-71544: Handle lifetime value 0 for form_key cookie #10528
 - MAGETWO-71542: Show shipping methods in shipping estimator as loading during estimation #10514
@ekuusela ekuusela deleted the patch-1 branch August 16, 2017 09:10
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.

None yet

3 participants