Jump to content
Larry Ullman's Book Forums

Using Sessions To Store Checkout Step Data


Recommended Posts

Larry,

 

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?

 

Thanks,

 

Matt

Link to comment
Share on other sites

 Share

×
×
  • Create New...