Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
Matt

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

Share this post


Link to post
Share on other sites

Thanks Larry!

 

My case is simpler because it's a service, so there is no shipping info. I will do it with sessions then.

 

Matt

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...