I
I
Ivan Pashin2016-08-28 23:06:45
Zend Framework
Ivan Pashin, 2016-08-28 23:06:45

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');

And how to implement the same in Zend?
For authorization I use ZfcUser and BjyAuthorize.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-08-28
@IvanFantoM

stackoverflow.com/questions/8990195/how-to-use-zen...
stackoverflow.com/questions/21967863/zend-session-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question