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

Fix #20292: Fix \yii\web\Session should not set cookie params, when useCookie is false #20293

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

cebe
Copy link
Member

@cebe cebe commented Dec 6, 2024

Fix #20292: yii\web\Session should not set cookie params, when useCookies is false

Upgrading from PHP 8.3.7 to 8.3.14 breaks yii\web\Session when used with useCookies = false.

Error: Session cookies cannot be used when session.use_cookies is disabled.

Q A
Is bugfix? ✔️
New feature?
Breaks BC? ❌ (should not)
Fixed issues #20292

…kies is false

Upgrading from PHP 8.3.7 to 8.3.14 breaks yii\web\Session when used with useCookies = false.

Error: Session cookies cannot be used when session.use_cookies is disabled.
@cebe cebe force-pushed the cebe/fix-cookie-params branch from 436006d to 3cff986 Compare December 6, 2024 14:33
Copy link

codecov bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.85%. Comparing base (65e3369) to head (3cff986).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #20293   +/-   ##
=========================================
  Coverage     64.85%   64.85%           
- Complexity    11409    11410    +1     
=========================================
  Files           431      431           
  Lines         37142    37143    +1     
=========================================
+ Hits          24087    24088    +1     
  Misses        13055    13055           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@schmunk42 schmunk42 self-requested a review December 6, 2024 14:59
Copy link
Contributor

@schmunk42 schmunk42 left a comment

Choose a reason for hiding this comment

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

LGTM

@samdark samdark added this to the 2.0.52 milestone Dec 7, 2024
@samdark samdark added the php8 label Dec 7, 2024
@samdark samdark changed the title Fix #20292: yii\web\Session should not set cookie params, when useCoo… Fix #20292: Fix \yii\web\Session should not set cookie params, when useCookie is false Dec 7, 2024
@samdark samdark merged commit dc05f31 into master Dec 7, 2024
172 checks passed
@samdark
Copy link
Member

samdark commented Dec 7, 2024

👍

@samdark samdark deleted the cebe/fix-cookie-params branch December 7, 2024 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

yii\web\Session with useCookies = false breaks on PHP 8.3.14
4 participants