Updated cart to store itself in the session.