$_SESSION multidimensional array issues
<p>Please i need help, this code below works fine on my localhost, php5.3+ but on the server its not working fine. 5.2</p>

<pre><code>    $_SESSION['myinv_id'] = $setinvid;
    $_SESSION['prod_name'][$i] = $prod_name;    
    $_SESSION['qty'][$i] = $clean_qty;
    $_SESSION['price'][$i] = $clean_price;
    $_SESSION['total'][$i] = $clean_total;
    $_SESSION['desc'][$i] = $desc;
</code></pre>

<p>when i did a var_dump</p>

<p>The first time contents were added, i had these.</p>

<pre><code>    array(5) { 
     ["prod_name"]=&gt; array(1) {[0]=&gt; string(4) "SDFD" }
     ["qty"]=&gt; array(1) {[0]=&gt; string(2) "43"} 
     ["price"]=&gt; array(1) { [0]=&gt; string(2) "43" } 
     ["total"]=&gt; array(1) { [0]=&gt; string(4) "1849" } 
     ["desc"]=&gt; array(1) { [0]=&gt; string(6) "dsfsdf" } } 
</code></pre>

<p>works fine....as the array is returned but in an attempt to added a second value...i get these error...saying Fatal Error [] not expected for strings..when i did a var_dump...i had these...in these case, ['prod_name'] &amp; ['desc'] has inevitable changed from array to string and an array value cannot be pushed into the stake.</p>

<pre><code>    array(5) { 
     **["prod_name"]=&gt; &amp;string(5) "dddsd"** 
      ["qty"]=&gt; &amp;array(2) { 
        [0]=&gt; string(2) "43" 
       [2]=&gt; string(2) "45" }
       ["price"]=&gt; &amp;array(2) { 
  [0]=&gt; string(2) "43" 
     [2]=&gt; string(1) "3" } 
     ["total"]=&gt; &amp;array(2) { 
[0]=&gt; string(4) "1849" 
        [2]=&gt; string(3) "135" } 
      **["desc"]=&gt; &amp;string(7) "dsddadd"** } 
</code></pre>

<p>Please what could be the source of the problem, and i have even tried decalaring this session variables as an empty array before using them, yet no avail.</p>
