The main symptom I'm experiencing is that some customers are following a link to a product on my web site, then clicking the Add to Cart button, which then takes them to the "Your Shopping Cart is empty" page. The item can be added successfully to the cart by going to a category where the product is listed and clicking the Buy Now button under the product in the listing. I am able to duplicate this problem consistently using Firefox 3.6.13 on Windows XP by clearing my cookies (and cache, but I don't know if that is required), going to the below link, and clicking Add to Cart:
http://arkhambazaar.com/oddities/other/cthulhu-fish
What seems to be happening is that when I visit the link, Zen cart sets a zenid session cookie (I never really get the zenid in my URL, during this test, but sometimes I get it when browsing the site in general). However, when I click on Add to Cart, I appear to get assigned a new (and different) zenid session cookie. If I go back to the same product page, I see the item I tried to add is listed in the minicart in the righthand column. Perusing my cookies at this point shows that I have two active zenid session cookies. If I click on the shopping cart link it takes me to the same "Your Shopping Cart is empty" page. However, if I go to a category (like Oddities) and click the Buy Now button under the same product (the Cthulhu Fish), it takes me to my shopping cart with the product successfully added (but only the one I added with the Buy Now button, not the one I tried to add with the Add to Cart button from the product info page).
While on the "good" shopping cart page, it seems like I normally only have the one "good" session cookie, but if I go back to the product page, I often have two... both a good and bad session cookie. This results in me being able to see the products that I tried to add to the cart using the Add to Cart button from the product page in the minicart (so if I add two of the same product, I see two in the minicart), but when I click to the Shopping Cart, I now see only the product I added with the Buy Now button from the category page (so only one of the product, versus the two showing in the minicart on the product info page).
I am using Zencart 1.3.9g with the FEC module, one of the lightbox modules, Image Manager 2, and Ceon URI mapping. I started with a fresh install of Zencart 1.3.9g (back in October), applied customized templates, and added the newest versions of the above modules. I am using customized templates, but switching back to the Classic green template doesn't seem to fix the problem - it is still reproducible for me using the same method above - so I don't think it is directly a template problem.
I think the problem has been ongoing since then, but it does not seem to affect all users... I sell stuff every day. After clicking around my site for a while, sometimes the problem seems to go away, or if I add a product that has variations (like a T-shirt with size options), that *sometimes* seems to "fix" the problem... then again, not always. Sometimes the problem persists for the initial product, however the product is not necessarily limited to the same Cthulhu Fish product, but it does seem to occur the most with products that do not have variations, as far as I can tell (I did have a customer tell me that he couldn't add a T-shirt with a size variation, though I haven't experienced that in my testing).
This almost certainly has something to do with the Ceon module... when I turn it off I can't reproduce the problem, and everything works well. The reason I'm not posting this in the Ceon URI mapping support thread, frankly, is that I want to understand how the session/cookie management is becoming mucked up. If I can figure out for myself why Zencart is giving me a new session cookie when I try to add to cart, I think I can get at the heart of the problem and keep it from happening regardless of module usage. I am already seeking help from Conor by direct e-mail (but he seems to be gone for the weekend).
My SSL certificate (though this problem appears before things start getting to the secure part of the checkout process) is for arkhambazaar.com (no www), so I have made adjustments to the site to only use arkhambazaar.com sitewide - it is specified in both my includes/configure.php file, and I have a Rewrite rule in my Apache config (I'm not using .htaccess files) that redirects www to non-www. My rewrite rules for the Ceon mapping module are also in my Apache config files, and I've doublechecked them against the installation instructions for the module.
I've been through most of the forum entries I could find concerning similar subjects, but the causes seem to be many and varied (though I'm sure session management is the cause of all the symptoms), as are the solutions. None of the solutions I tried have kept me from reproducing the problem, but frankly it's hard to keep them all straight from the disparate forum entries, especially in the long third-party contribution support threads.
Can someone describe to me what might be at the heart of these session issues? Any suggestions for fixing it? A solution would be great, but (as when I visit the doctor) I'd prefer a diagnosis, not just a pill (but the pill is okay too). Let me know if I can supply more information to assist with the diagnosis!
Server info:
PHP Version: 5.3.3
Database: MySQL 5.0.51a-24
HTTP Server: Apache/2.2.15
Thanks in advance for any help!
Brian


Reply With Quote



