ECart can already do this for you.
On your confirm page, add a couple of server behaviors...
ECart --> Database Manipulation-->Store Cart Details in Database
ECart --> Database Manipulation-->Store Cart Summary in Database
You could add this information at the 'add to cart stage' but I wouldn't do this, as the cart contents may change significantly whilst browsing