Jump to content
Larry Ullman's Book Forums

Using Sessions To Store Checkout Step Data

Recommended Posts



I had a quick question about the checkout process in Example 2 of the book.


Is it possible to use sessions to store data between the pages (i.e. shipping, billing, etc...) and inserting the data in the database at the end rather than after each page is completed? There are two benefits that I can see from using this approach:


1) There will not be any uncompleted orders in the database if the user decides to back out at the last minute.


2) The user can go back and change their information at any time in the process by clicking the link at the top for each checkout step.


Is this a sound way of doing it or are there any logistics problems that might come up?





Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...