p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 (http://p2p.wrox.com/forumdisplay.php?f=160)
-   -   chapter 15 help (http://p2p.wrox.com/showthread.php?t=48101)

kyledonmoyer September 20th, 2006 09:00 PM

chapter 15 help
 
First off, I think this is a great book...

I have been working on doing my own custom store with the help of this book...everything is working properly except I have 2 problems (its still in the early stages):

a) if I add more than one item to the cart, the price totals add to what the 2 items would be up in the end, but only one item is displayed. Meaning the information isn't getting passed through, meaning that whole object could get overlooked in shipping.

b) if I don't actually go through to the checkout (close my browser before I "proceed to checkout" the information still remains there next time I go to the store and I even have users set up (with password).

Anyone have any suggestions?

Thanks,
Kyle


kyledonmoyer September 21st, 2006 12:35 PM

fixed problem b...but still need help with a

solution to b is to put: session_regenerate_id(); after session_start(); this gives a unique session_id everytime the user logs in.

I can definately see it COULD make sense not to worry about regenerating this since the same user going back to the page, the info would be held, but I don't like that option, just in case.

help with a anyone?

Thanks,
Kyle


lucius June 30th, 2007 08:06 AM

I'm having a problem with the afore mentioned b.

I've tried using session_regenerate_id(); but nothing is really happening. My information is still there in the cart from the last time. Visible on other computers too.

Any ideas? I appreciate any help!
Luke


All times are GMT -4. The time now is 09:32 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.