If you already have a session variable called "PromoCode" and you are already inserting your orders summary into a orders table, then all you need to do is:
1) Update your database table and add a column to store the promocode
2) Go to the confirm page and update the "store cart summary in database" server behavior and set the value of the promocode column to come from the promocode session variable.