I'm new to using sessions and I'd like some input on what the best method is for my situation.
The site I'm building requires a shopping cart. A very simple one I might add. There will be no credit card facility or login system (explained in next paragraph). The user will click on items he/she would like to order which is added to the shopping cart and when the user decides he/she is done then he/she clicks on the checkout button which takes them to the checkout form where he/she fills out their information and then clicks submit which then sends off an email to the owner of the site with the order details etc.
Now the way I'm thinking of building this is when a user clicks on "Order" for a product a session is started and a row is inserted (with the session id and the product he/she click the order button for) into a table called sessions inside the DB. This process happens for each product that is ordered with the exception of creating a new session unless one doesn't exist.
Then when a user clicks on the checkout button it takes them to the checkout page where the sessions table is search for all entries with the current session's id and shown on the page. The user fills out his/her details (such as contact numbers, name, surname address etc) and clicks submit and an email is then sent off with all the details.
Any constructive criticism would be great.