I've added the two extra session variables that are set from the login page and added the code to the success page.
After the worldpay redirect to the success page the quickcart in the header still shows the number of items and total from the purchase. However if "view cart" is clicked this is cleared to zero.
Is it possible to have the quickcart reset to zero as the page loads?
Success page is attached.