I am storing quite a bit of data in my Zend Session namespaces and I'm wondering what's the most efficient way to reference it in my classes.
Currently my constructors set up access with lines such as $this->_storage = new Zend_Session_Namespace('products');
Later, when I need to access data in the namespace, I do so with $this->_storage->varname = $var;
or $this->_storage->unsetAll();
Does this mean that there is disk activity every time I read or write to the session? Or is it read at the start of the request, and written at the end?
If there are multiple disk accesses within the duration of a single request, is there an easy way around it?