
<?php session_regenerate_id(); ?>
If the problem occurs because the same session id value is being used as the identifier of the order then this code should prevent this from occurring.

Would this do the same same thing on a checkout success page? I had a customer that tried to order a second order without closing their browser and got an order exist error