Yes, I had removed that before and it didn't make a difference. I have it working now but it was not just the session in the OrderDetials.
What was throwing everything off was the for some reason the DetailOrderID column was set as auto increment and the primary key. I changed DetailID to be auto increment and the primary. Somehow when creating the cart I must have chosen this column as the key column when ecart created the table.
Looks to be working, hope everything goes smoothly now. Thanks for you help!