title: Zend Session Namespace, get key of defined array
body: <p>I'm using some Zend_Session_Namespace objects to save some data, most of these data or multidimensional arrays. I have the feeling that I miss a part of the Zend_Session_Namespace logic or I don't use them for what they are supposed to do.</p>
  
  <p>For example I store a cd id with its tracklist as an array.</p>
  
  <pre><code>$session = new Zend_Session_Namespace('cd-track-list');
  $session-&gt;{123} = array('First Track', 'Second Track');
  </code></pre>
  
  <p>Afterwards I want to loop the session namespace and I want to know the id of the cd and its tracklist.</p>
  
  <pre><code>foreach($session as $key =&gt; $value {
     // $key is 0 -&gt; but should be 123
     // $value is array('First Track', 'Second Track');
  }
  </code></pre>
  
  <p>The $value is correct, but the $key isn't set here.
  So my question is, how can I get the id of the cd when I loop all cd's?</p>
  
  <p>Thanks in advance.</p>