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

This commit is contained in:
Carsten Brandt
2024-12-07 08:19:25 +01:00
committed by GitHub
parent 65e3369e16
commit dc05f31100
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Yii Framework 2 Change Log
2.0.52 under development
------------------------
- Bug #20292: Fix `\yii\web\Session` should not set cookie params, when useCookie is false (cebe)
- Bug #20232: Fix regression introduced in `GHSA-cjcc-p67m-7qxm` while attaching behavior defined by `__class` array key (erickskrauch)
- Bug #20231: Fix regression introduced in #20167 in `yii\validators\FileValidator` (bizley)
- Enh #20247: Support for variadic console controller action methods (brandonkelly)

View File

@ -145,7 +145,9 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co
$this->registerSessionHandler();
if ($this->getUseCookies() !== false) {
$this->setCookieParamsInternal();
}
YII_DEBUG ? session_start() : @session_start();