The Session class of zend-expressive-session does some json encoding and decoding in the Session::set method. The SessionInterface says “Values MUST be serializable in any format; we recommend ensuring the values are JSON serializable for greatest portability.”. And that’s what they are doing in their implementation and I’m fine with it
However, I’m currently migrating a ZF1 application to ZE3.
The ZF1 application stores a lot of stuff in the session.
For example whole Zend_Form instances.
These are serializable, but not JsonSerializable.
Question:
Does anybody know if there is an alternative implementation of the zend-expressive-session SessionInterface which does not enforce json format?
Thanks in advance
Steffen