Skip to content

Commit

Permalink
update sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Nov 24, 2022
1 parent fd2e8d3 commit a067a74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/models/CmsSearchPhrase.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ public function rules()
'data_session',
'default',
'value' => function (self $model, $attribute) {
\Yii::$app->session->open();
//\Yii::$app->session->open();
return $_SESSION;
}
],
[
'session_id',
'default',
'value' => function (self $model, $attribute) {
\Yii::$app->session->open();
return \Yii::$app->session->id;
//\Yii::$app->session->open();
return (\Yii::$app->session->getHasSessionId() || \Yii::$app->session->getIsActive()) ? \Yii::$app->session->id : null;
}
],

Expand Down

0 comments on commit a067a74

Please sign in to comment.