How can make sure session is always started in Yii2? In Yii 1.0 there seemed to be a configuratio parameter autoStart
but I don't see that in Yii2.
Do I need to manually call Yii::$app->session->open()
(or session_start()
), and if so, where is a good place to do that for all requests?
At the time of writing The Definitive Guide doesn't talk about it.