I created a utility library that extended Phalcon\Mvc\User\Component
I got the error specified in the subject title when saving the session. I read some earlier threads about this where it was suggested to serialize the object first and then save the session. I tried this but got the same error when passing the object to the serialize function.
This problem is a bit of a nuisance because of the loss of the convenience of accessing the DI container. Any ideas on whether this is a bug?
Regards.