title: Assigning updated value to $_SESSION array
body: <p>Can someone tell me why the $_SESSION array is not getting modified by the code below.  The object is to put the date in DoNotShipBefore of each record. It is obviously putting the value somewhere as the output of $Row['DoNotShipBefore'] shows the correct date.  But, when the loop is done, it doesn't appear to have taken.</p>
  
  <pre><code>session_start();
  print_r($_SESSION[cart_array]);
  foreach($_SESSION[cart_array] as $Row) {        
  
        $Row['DoNotShipBefore'] = date("m/d/Y") ;
        echo "&lt;br&gt;New Value of DoNotShipBefore (From cart_array): ". $Row['DoNotShipBefore'] ;
  
  }
  print "&lt;br&gt;&lt;br&gt;";
  print_r($_SESSION[cart_array]);
  die();
  </code></pre>
  
  <p>Output follows: </p>
  
  <pre><code>Array ( [0] =&gt; Array ( [groupId] =&gt; 26141 [DoNotShipBefore] =&gt; 10/01/2017)) 
  
  New Value of DoNotShipBefore (From cart_array): 07/06/2017
  
  Array ( [0] =&gt; Array ( [groupId] =&gt; 26141  [DoNotShipBefore] =&gt; 10/01/2017))
  
  // Should be (or what I want is):
  Array ( [0] =&gt; Array ( [groupId] =&gt; 26141  [DoNotShipBefore] =&gt; 07/06/2017))
  </code></pre>
  
  <p>I'm having a hard time wrapping my head around how to address Arrays within the SESSION, so would really appreciate any help.</p>