mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
Fix #20292: Fix \yii\web\Session should not set cookie params, when useCookie is false
This commit is contained in:
@ -145,7 +145,9 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co
|
||||
|
||||
$this->registerSessionHandler();
|
||||
|
||||
$this->setCookieParamsInternal();
|
||||
if ($this->getUseCookies() !== false) {
|
||||
$this->setCookieParamsInternal();
|
||||
}
|
||||
|
||||
YII_DEBUG ? session_start() : @session_start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user