I’ve been googling for hours for an answer and couldn’t find one.
Since my website has a login system and I would like to use the data in the $_SESSION, I can’t seem to get all the data I need, it’s private and I need some kind of a function to get it, but without success.
Basically, I have a controller which I do:
$session = $this->getRequest()->getSession()->all()
which gives all the attributes in the $_SESSION, but I can’t seem to be able to access the private attributes which I need since all() returns array.
How can I get these attributes?
You have to edit the session through the
Sessionclass.