title: Dynamic session array remove specific element
body: <p>So I am trying to remove a specific element from my dynamic session array. My current array removes the wrong element and leaves the element I wish to get rid of</p>
  
  <pre><code>sku = "the_item_value"
  sessionArray = session("cart")
  Dim length : length = Ubound(sessionArray)
  sessionArray(length-1)=sku
  ReDim Preserve sessionArray(length-1)
  session("cart") = sessionArray
  </code></pre>
  
  <p>So this is my current code, it removes a single item from my session array. However, it does not remove the "sku" item, it removes a random item.</p>