Answer the question
In order to leave comments, you need to log in
How to write data to user session in Zend Framework 2?
Tell me, how to write data to the user session in Zend Framework 2?
In Yii, everything was pretty easy, from anywhere you can call the following:
\Yii::$app->session->set('user.attribute',$value);
\Yii::$app->session->get('user.some_attribute');
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