Answer the question
In order to leave comments, you need to log in
How to extend the lifetime of a session variable?
I set the variable like this:
Yii::$app->session->set('currentSite', $currentSite);
'session' => [
// this is the name of the session cookie used for login on the backend
'class' => 'yii\web\Session',
'timeout' => 86400
],
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question