I'm developing a simple strucutre but complex function websit, it has a lot of manipulations, like a web game.
so I hope to track a lot of status of the user, session is the best, but there are too many variable, so I hope to put them in an object, and use session to store it.
I tried but failed, I store the data object in session
> $userdata = new userdata(some var); > $this->session->set("userdata", $userdata);
but when I take it out in another controller or action
> object(Phalcon\Session\Adapter\Files) > protected '_uniqueId' => null > protected '_started' => boolean true > protected '_options' => null
this means I can't use
to take out the data
can anyone help me?