I would not depend on the session for cart data, you would be better off saving the
session cart data to a database table for cart_contents.
Then when they login you can just read the cart_contents for that users id and update
your session to reflect the cart contents.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )