I wrote a shopping cart script and for no reason that I can discern, the session will spontaneously drop between the view cart and the checkout page. I wasn’t using the xhtml transitional doctype.
The actual site is http://clientdev1.crimsondryad.com. You can follow the path through to the payment page without affecting anything. The user can go through, shop, and hit the checkout page, which is where the session appears to be dropping. On the review order page, I do a check for the number of items in the session and output a “There are no items in your cart message” if it doesn’t exist. This only seems to happen on this one page.
I tried adding a session save path. The session is saved, but with no data. How would I go about forcing the session to write out and how would I retrieve it? I’m using POSTed form fields, so passing the session id via the URL really isn’t feasible here.
I also did some reading online and the php.net site says there was a problem with session handling in 5.1.2. The newest release is 5.1.4. I suppose it’s too much to ask that PHP get updated after all the craziness of the last week (with the power outage and related issues).
I’d appreciate the help on this one, I’m confused and my client is getting antsy.
CrimsonDryad Web Design Services
Web Design, Custom Software Development