When a user enter our site on the .se domain no cart is created by default and I guess that is the behaviour you want.If our user enter the site on our .no domain an empty cart will be created which leaves us with alot of empty carts.
Any idea what could cause this behavior? .no and .se runs in the same IIS application. The site is based on Quicksilver and runs in verion 10.5
One way to figure out which code created the cart, is to remove ecf_OrderGroup_InsertForShoppingCart store procedure (temporarily). Then visit your .no site, the code which is trying to create the cart should fail and you can see it from the stacktrace.
Just to remind: DON'T do this in your production site. You surely won't do it, but I'm obliged to say. And enabled back ecf_OrderGroup_InsertForShoppingCart after that.
Now that was a great trick, found the code that caused the problem, thanks Quan.