It''s not necessarily ideal to just store the data in the database. In the case of an online shop, the user will have to log in before adding to a cart - otherwise there''s nowhere for the data to go... Or the session gets ignored when the user logs in and the database takes over. (I''ve used systems like this. Irritating is not the word...) I''d say: 1: use the session until the user logs in. 2: copy the session data to the database on log-in.