In [this precursor question][1], I asked about the practical way of using the new Zend\Session component. That question contains a lot of misconceptions I got when first looking at the component.
This question is about the practical way of really doing things.
- are my proposed ZF ways correct?
- are there better ways?
For more depth, let's compare how we would do certain things with Zend\Session
as well as the Symfony Session component:
Symfony (given you register the namespaced attribute bag):